Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Dec 20, 2024
1 parent 109e6df commit 04789ac
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/update-from-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,34 @@ 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

- 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 }}

0 comments on commit 04789ac

Please sign in to comment.