-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
297ff35
commit 6016e58
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,14 +31,14 @@ jobs: | |
git config --global user.name 'hmcts-platform-operations' | ||
git config --global user.email '[email protected]' | ||
- name: Pull latest changes with merge | ||
- name: Create new branch | ||
run: | | ||
git config pull.rebase false | ||
git pull origin master --allow-unrelated-histories | ||
git checkout master | ||
git pull origin master | ||
git checkout -b update-repo-list | ||
- name: Commit changes | ||
run: | | ||
git checkout -b update-repo-list | ||
git add production-repos.json | ||
git commit -m 'Update repository list' | ||
|
@@ -55,9 +55,7 @@ jobs: | |
sudo apt-get install gh -y | ||
- name: Authenticate GitHub CLI | ||
run: gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}" | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token | ||
|
||
- name: Create Pull Request | ||
run: gh pr create --title "Automated Update Repository List" --body "This PR was created automatically to update the repository list." --head update-repo-list --base master | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr create --title "Automated Update Repository List" --body "This is an automated pull request to update the repository list." --head update-repo-list --base master |