Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit cd9fd3d

Browse files
authored
chore(ci): fix update docs workflow (#3395)
1 parent cfbcc94 commit cd9fd3d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: .github/workflows/update-docs.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,14 @@ jobs:
2424
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
2525
auth_type: installation
2626

27-
- name: Dump GitHub context
28-
env:
29-
GITHUB_CONTEXT: ${{ toJson(github) }}
30-
run: echo "$GITHUB_CONTEXT"
31-
3227
# We use the app for branches in this this repo to ensure PR chekcs are kept in place.
33-
- if: github.event_name == 'push' && github.repository_owner == 'philips-labs'
28+
- if: github.event_name == 'push' && github.repository_owner == 'philips-labs' && github.ref != 'refs/heads/main'
3429
name: Checkout with App Token
3530
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3
3631
with:
3732
token: ${{ steps.token.outputs.token }}
3833

39-
- if: github.event_name == 'push' && github.repository_owner != 'philips-labs'
34+
- if: (github.event_name == 'push' && github.repository_owner != 'philips-labs') || github.ref == 'refs/heads/main'
4035
name: Checkout with GITHUB Action token
4136
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3
4237

0 commit comments

Comments
 (0)