Skip to content

Commit 235e0e0

Browse files
committed
Fix: update redirect
1 parent 282035c commit 235e0e0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/artifact_redirect.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
name: Book Preview
2-
1+
name: Book Preview Redirect
32
on: [status]
43

4+
# Restrict the permissions granted to the use of secrets.GITHUB_TOKEN in this
5+
# github actions workflow:
6+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
7+
permissions:
8+
statuses: write
9+
510
jobs:
611
circleci_artifacts_redirector_job:
712
runs-on: ubuntu-latest
8-
if: "${{ github.event.context == 'ci/circleci: build_book' }}"
13+
14+
# For testing this action on a fork, remove the "github.repository =="" condition.
15+
if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build'"
16+
permissions:
17+
statuses: write
918
name: Run CircleCI artifacts redirector
1019
steps:
1120
- name: GitHub Action step

0 commit comments

Comments
 (0)