File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 15
15
description : ' The repository to checkout (owner/repo)'
16
16
required : true
17
17
type : string
18
- # Reusable workflow doesn't have directly access to secrets, so we need to pass them in as inputs
18
+ secrets :
19
19
cloudflare_api_token :
20
20
description : ' Cloudflare API Token'
21
21
required : true
22
- type : string
23
22
cloudflare_account_id :
24
23
description : ' Cloudflare Account ID'
25
24
required : true
26
- type : string
27
25
28
26
permissions :
29
27
pull-requests : write # To allow commenting on the PR
52
50
id : deploy
53
51
uses : cloudflare/wrangler-action@v3
54
52
with :
55
- apiToken : ${{ inputs .cloudflare_api_token }}
56
- accountId : ${{ inputs .cloudflare_account_id }}
53
+ apiToken : ${{ secrets .cloudflare_api_token }}
54
+ accountId : ${{ secrets .cloudflare_account_id }}
57
55
command : pages deploy ./_site --project-name=rdoc --branch="${{ inputs.pr_number }}-preview"
58
56
59
57
- name : Comment on PR with preview URL
Original file line number Diff line number Diff line change 13
13
pr_number : ${{ github.event.pull_request.number }}
14
14
pr_head_sha : ${{ github.event.pull_request.head.sha }}
15
15
pr_checkout_repository : ${{ github.repository }}
16
+ secrets :
16
17
cloudflare_api_token : ${{ secrets.CLOUDFLARE_API_TOKEN }}
17
18
cloudflare_account_id : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
18
19
36
37
pr_number : ${{ github.event.pull_request.number }}
37
38
pr_head_sha : ${{ github.event.pull_request.head.sha }}
38
39
pr_checkout_repository : ${{ github.event.pull_request.head.repo.full_name }}
40
+ secrets :
39
41
cloudflare_api_token : ${{ secrets.CLOUDFLARE_API_TOKEN_FOR_FORKS }}
40
42
cloudflare_account_id : ${{ secrets.CLOUDFLARE_ACCOUNT_ID_FOR_FORKS }}
You can’t perform that action at this time.
0 commit comments