Skip to content

Commit 18ee5bc

Browse files
authored
ci: update docs/latest/.sha even if no docs changes (#996)
1 parent abe9acf commit 18ee5bc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/update-docs.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,14 @@ jobs:
4444
git add .
4545
if [ "$(git status --porcelain | grep -v 'docs/latest/.sha')" = "" ]; then
4646
echo "::warning:: Unexpectedly found no new content for docs - this might be a bug"
47-
echo "changes=false" >> "$GITHUB_OUTPUT"
48-
else
49-
echo "changes=true" >> "$GITHUB_OUTPUT"
5047
fi
5148
- name: Push changes to branch
52-
if: ${{ steps.prebuild.outputs.changes == 'true' }}
5349
uses: dsanders11/github-app-commit-action@43de6da2f4d927e997c0784c7a0b61bd19ad6aac # v1.5.0
5450
with:
5551
message: 'chore: update ref to docs (🤖)'
5652
ref: 'docs/update-to-${{ env.SHA }}'
5753
token: ${{ steps.generate-token.outputs.token }}
5854
- name: Create pull request
59-
if: ${{ steps.prebuild.outputs.changes == 'true' }}
6055
shell: bash
6156
env:
6257
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
@@ -67,11 +62,9 @@ jobs:
6762
--head "docs/update-to-${SHA}" \
6863
--base main
6964
- name: Get GitHub App token (approver app)
70-
if: ${{ steps.prebuild.outputs.changes == 'true' }}
7165
id: secret-service
7266
uses: electron/secret-service-action@3476425e8b30555aac15b1b7096938e254b0e155 # v1.0.0
7367
- name: Approve and merge pull request
74-
if: ${{ steps.prebuild.outputs.changes == 'true' }}
7568
shell: bash
7669
env:
7770
GITHUB_TOKEN: ${{ fromJSON(steps.secret-service.outputs.secrets || '{}').PR_APPROVER_GH_TOKEN }}

0 commit comments

Comments
 (0)