Skip to content

Commit

Permalink
Push via SSH to trigger an push event
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Jul 30, 2023
1 parent ae64234 commit 2424dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/auto-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
steps:
- uses: actions/checkout@v3

# A GitHub Action can't trigger another GitHub Actions Events
# using the GH_TOKEN. So we need to use a SSH key to trigger
# the push event in system-tests.yaml for our pull request.
- name: Add SSH key to SSH Agent
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand Down
4 changes: 3 additions & 1 deletion auto-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ fi
git checkout -b $BRANCH_NAME
git add .
git commit -m "Bump version to $NEW_VERSION"
git push -u origin $BRANCH_NAME

# Push to GitHub via SSH to trigger the GitHub Action Events
git push -u origin $BRANCH_NAME --repo=git@github.com:nsg/immich-distribution.git

echo "
This PR bumps the version from **$OLD_VERSION** to **$NEW_VERSION**.
Expand Down

0 comments on commit 2424dc4

Please sign in to comment.