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 07a2ad2 commit 1263e9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/update-repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,27 @@ jobs:
run: |
git config --global user.name 'hmcts-platform-operations'
git config --global user.email '[email protected]'
export BRANCH_NAME=update-repo-list-$(date +%Y%m%d%H%M%S)
BRANCH_NAME="update-repo-list-$(date +%Y%m%d%H%M%S)"
git checkout -b $BRANCH_NAME
echo "::set-output name=branch::$BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Commit changes
run: |
git add production-repos.json
git commit -m 'Update repository list'
continue-on-error: true

- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push --set-upstream origin $(echo ${{ steps.create_branch.outputs.branch }})
git push --set-upstream origin $BRANCH_NAME
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Update repository list'
branch: $(echo ${{ steps.create_branch.outputs.branch }})
branch: ${{ env.BRANCH_NAME }}
title: 'Update repository list'
body: 'Automated update of repository list.'

0 comments on commit 1263e9c

Please sign in to comment.