From 04789ac06f03221afa7c700f28e1ba2c7c2577e1 Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Fri, 20 Dec 2024 13:35:29 -0800 Subject: [PATCH] Update workflow --- .github/workflows/update-from-changelog.yml | 48 ++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/update-from-changelog.yml b/.github/workflows/update-from-changelog.yml index f611ed4..35f296f 100644 --- a/.github/workflows/update-from-changelog.yml +++ b/.github/workflows/update-from-changelog.yml @@ -20,24 +20,24 @@ jobs: with: submodules: true - # - name: Validate branch - # run: | - # BRANCH_NAME="${{ github.ref_name }}" - # echo "Branch: $BRANCH_NAME" - # if [[ "$BRANCH_NAME" != "main" ]]; then - # echo "Not on main branch. Exiting." - # exit 1 - # fi - - # - name: Import GPG key - # uses: crazy-max/ghaction-import-gpg@v6 - # with: - # gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - # passphrase: ${{ secrets.GPG_PASSPHRASE }} - # git_user_signingkey: true - # git_commit_gpgsign: true - # fingerprint: "F768450FB05B817D0B4BC26FB9B6A9B428C8676A" - # trust_level: 5 + - name: Validate branch + run: | + BRANCH_NAME="${{ github.ref_name }}" + echo "Branch: $BRANCH_NAME" + if [[ "$BRANCH_NAME" != "main" ]]; then + echo "Not on main branch. Exiting." + exit 1 + fi + + - name: Import GPG key + uses: crazy-max/ghaction-import-gpg@v6 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.GPG_PASSPHRASE }} + git_user_signingkey: true + git_commit_gpgsign: true + fingerprint: "F768450FB05B817D0B4BC26FB9B6A9B428C8676A" + trust_level: 5 - name: Run update script run: bash update-changelog.bash @@ -45,9 +45,9 @@ jobs: - name: Show updated 'CHANGELOG.md' run: cat CHANGELOG.md - # - name: Commit and push changes - # run: | - # git add . - # git commit -m "Update 'CHANGELOG.md' based on submodule commits" - # git pull --rebase origin ${{ github.ref_name }} - # git push origin HEAD:${{ github.ref_name }} + - name: Commit and push changes + run: | + git add . + git commit -m "Update 'CHANGELOG.md' based on submodule commits" + git pull --rebase origin ${{ github.ref_name }} + git push origin HEAD:${{ github.ref_name }}