Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 4 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@ jobs:
SEGMENT_TOKEN: ${{ secrets.SEGMENT_TOKEN }}

- name: Commit the updated package.json and lockfile
uses: stefanzweifel/git-auto-commit-action@v7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, an oddball 🙂

uses: apify/actions/signed-commit@v1.1.2
with:
commit_message: 'chore: Automatic theme updating workflow [skip ci]'
file_pattern: 'website/package.json pnpm-lock.yaml'
commit_user_name: Apify Bot
commit_user_email: my-github-actions-bot@example.org
commit_author: Apify Bot <apify@apify.com>
message: 'chore: Automatic theme updating workflow [skip ci]'
add: 'website/package.json pnpm-lock.yaml'
github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

- name: Set up GitHub Pages
uses: actions/configure-pages@v6
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
needs: [release_metadata, build_and_test]
runs-on: ubuntu-22.04
outputs:
changelog_commitish: ${{ steps.commit.outputs.commit_long_sha || github.sha }}
changelog_commitish: ${{ steps.commit.outputs.commit_long_sha }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be an issue in any of the other repositories? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it everywhere already 🙂

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool, thanks!

version_number: ${{ needs.release_metadata.outputs.version_number }}
tag_name: ${{ needs.release_metadata.outputs.tag_name }}
release_notes: ${{ needs.release_metadata.outputs.release_notes }}
Expand Down Expand Up @@ -114,12 +114,11 @@ jobs:

- name: Add changes to the release commit and push
id: commit
uses: EndBug/add-and-commit@v10
uses: apify/actions/signed-commit@v1.1.2
with:
author_name: Apify Release Bot
author_email: noreply@apify.com
message: 'chore(release): set package version to ${{ needs.release_metadata.outputs.version_number }} and update changelog [skip ci]'
pull: '--rebase --autostash'
github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

create_github_release:
name: Create github release
Expand All @@ -145,7 +144,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ needs.update_changelog.outputs.changelog_commitish }}
# Always check out the default branch (not the SHA) so the commit
# action can push to a branch ref.
ref: ${{ github.event.repository.default_branch }}
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

- name: Use Node.js 24
Expand All @@ -164,14 +165,11 @@ jobs:
pnpm exec docusaurus api:version "$MAJOR_MINOR"

- name: Commit versioned docs
uses: EndBug/add-and-commit@v10
uses: apify/actions/signed-commit@v1.1.2
with:
author_name: Apify Release Bot
author_email: noreply@apify.com
message: 'docs: version docs for ${{ needs.update_changelog.outputs.version_number }} [skip ci]'
pull: '--rebase --autostash'
# `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push.
new_branch: ${{ github.event.repository.default_branch }}
github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

publish_to_npm:
name: Publish to npm
Expand Down
Loading