Skip to content

Commit

Permalink
Update create-token-pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Oct 28, 2024
1 parent dac3f2d commit ba5d945
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/create-token-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:
with:
fetch-depth: 0

- name: Configure GitHub User
run: |
git config user.name "Swiss Post Bot"
git config user.email "[email protected]"
- name: Update Tokens Branch
run: |
git checkout ${{ github.ref_name }}
git merge origin/main -X ours --no-edit
git push
env:
GITHUB_TOKEN: ${{ secrets.SWISSPOSTDEVS_ACCESS_TOKEN }}

# Check if a PR branch corresponding to the token branch exists
- name: Get PR Branch
id: pr-branch
Expand All @@ -37,8 +50,6 @@ jobs:
- name: Update PR
if: steps.pr-branch.outputs.exists == 'true'
run: |
git config user.name "Swiss Post Bot"
git config user.email "[email protected]"
git checkout ${{ steps.pr-branch.outputs.name }}
git merge ${{ github.ref_name }} -X theirs --no-edit
git push
Expand Down

0 comments on commit ba5d945

Please sign in to comment.