|
6 | 6 |
|
7 | 7 | # Runs when invoked by another workflow. |
8 | 8 | workflow_call: |
9 | | - inputs: |
10 | | - ref: |
11 | | - description: Git ref to checkout. |
12 | | - required: true |
13 | | - type: string |
14 | | - outputs: |
15 | | - version_docs_commitish: |
16 | | - description: The commit SHA of the versioned docs commit. |
17 | | - value: ${{ jobs.version_docs.outputs.version_docs_commitish }} |
18 | 9 |
|
19 | 10 | concurrency: |
20 | 11 | group: version-docs |
|
31 | 22 | version_docs: |
32 | 23 | name: Version docs |
33 | 24 | runs-on: ubuntu-latest |
34 | | - outputs: |
35 | | - version_docs_commitish: ${{ steps.resolve_commitish.outputs.commitish }} |
36 | 25 | permissions: |
37 | 26 | contents: write |
38 | 27 |
|
|
41 | 30 | uses: actions/checkout@v6 |
42 | 31 | with: |
43 | 32 | token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
44 | | - ref: ${{ inputs.ref || github.event.repository.default_branch }} |
45 | 33 |
|
46 | 34 | - name: Set up Node |
47 | 35 | uses: actions/setup-node@v6 |
@@ -105,19 +93,9 @@ jobs: |
105 | 93 | uv run pnpm exec docusaurus api:version "$MAJOR_MINOR_VERSION" |
106 | 94 |
|
107 | 95 | - name: Commit and push versioned docs |
108 | | - id: commit_versioned_docs |
109 | | - uses: EndBug/add-and-commit@v10 |
| 96 | + uses: apify/actions/signed-commit@v1.0.0 |
110 | 97 | with: |
111 | | - add: website/versioned_docs website/versioned_sidebars website/versions.json |
112 | 98 | message: "docs: Version docs for v${{ steps.snapshot.outputs.version }} [skip ci]" |
113 | | - default_author: github_actions |
| 99 | + add: 'website/versioned_docs website/versioned_sidebars website/versions.json' |
114 | 100 | pull: '--rebase --autostash' |
115 | | - # `actions/checkout` detaches HEAD on SHA refs; EndBug needs a branch to push. |
116 | | - new_branch: ${{ github.event.repository.default_branch }} |
117 | | - |
118 | | - - name: Resolve output commitish |
119 | | - id: resolve_commitish |
120 | | - env: |
121 | | - COMMIT_SHA: ${{ steps.commit_versioned_docs.outputs.commit_long_sha }} |
122 | | - run: | |
123 | | - echo "commitish=${COMMIT_SHA:-$(git rev-parse HEAD)}" >> "$GITHUB_OUTPUT" |
| 101 | + github-token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }} |
0 commit comments