From 2424dc494c3b690c9cedc2c5d54c229a054eb527 Mon Sep 17 00:00:00 2001 From: Stefan Berggren Date: Sun, 30 Jul 2023 21:44:23 +0200 Subject: [PATCH] Push via SSH to trigger an push event --- .github/workflows/auto-bump.yaml | 3 +++ auto-bump.sh | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-bump.yaml b/.github/workflows/auto-bump.yaml index fc070b9..4d41fc1 100644 --- a/.github/workflows/auto-bump.yaml +++ b/.github/workflows/auto-bump.yaml @@ -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 diff --git a/auto-bump.sh b/auto-bump.sh index 2036fb5..a901b9e 100755 --- a/auto-bump.sh +++ b/auto-bump.sh @@ -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**.