Skip to content

Commit

Permalink
testing python pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorOKane-Kainos committed Jul 9, 2024
1 parent 297ff35 commit 6016e58
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/update-repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit 6016e58

Please sign in to comment.