Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/_update_release_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
name: Update changelog
runs-on: ubuntu-latest
outputs:
changelog_commitish: ${{ steps.commit.outputs.commit_long_sha || github.sha }}
changelog_commitish: ${{ steps.commit.outputs.commit-sha || github.sha }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand All @@ -77,10 +77,20 @@ jobs:
write-mode: overwrite
contents: ${{ needs.release_metadata.outputs.changelog }}

- name: Stage changes
id: stage
run: |
git add -A
if git diff --cached --quiet; then
echo "has-changes=false" >> "$GITHUB_OUTPUT"
else
echo "has-changes=true" >> "$GITHUB_OUTPUT"
fi

- name: Commit changes
id: commit
uses: EndBug/add-and-commit@v10
if: steps.stage.outputs.has-changes == 'true'
uses: apify/workflows/commit@v0.44.0
with:
author_name: Apify Release Bot
author_email: noreply@apify.com
message: 'chore(release): Update changelog and package version [skip ci]'
commit-message: 'chore(release): Update changelog and package version [skip ci]'
github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
Loading