Skip to content

Commit

Permalink
use PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 16, 2024
1 parent d85a32d commit 58ba02b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/release_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ jobs:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Merge update branches
env:
PAT: ${{ secrets.WORKFLOW_PAT }}
run: |
git config --global user.name 'Jordan Last'
git config --global user.email 'jordan.michael.last@gmail.com'
Expand Down Expand Up @@ -194,21 +196,13 @@ jobs:
echo "Deleted remote branch: $branch"
done
# Push changes
# Push changes using PAT
echo "Pushing changes to $CURRENT_BRANCH"
git push origin $CURRENT_BRANCH || {
git push https://$PAT@github.com/${{ github.repository }}.git HEAD:$CURRENT_BRANCH || {
echo "Failed to push changes"
exit 1
}
- name: Trigger tests
run: |
# Update a file to trigger the tests
echo "Release ${{ needs.prepare-release.outputs.release-version }} - $(date)" >> RELEASE.md
git add RELEASE.md
git commit -m "Trigger tests for release ${{ needs.prepare-release.outputs.release-version }}"
git push origin $CURRENT_BRANCH
- name: Create release
run: |
VERSION=${{ needs.prepare-release.outputs.release-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
push:
branches:
- main
pull_request: # Runs on pull requests to any branch
pull_request:

jobs:
determine-should-run-tests:
Expand Down

0 comments on commit 58ba02b

Please sign in to comment.