Skip to content

Commit df8a9cc

Browse files
committed
Allow to publish external forks
1 parent e2348e5 commit df8a9cc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2022

2123
- name: Setup Ruby
2224
uses: ruby/setup-ruby@v1
@@ -29,11 +31,12 @@ jobs:
2931
JEKYLL_ENV: production
3032

3133
- name: Publish
32-
uses: cloudflare/pages-action@v1.5.0
34+
uses: cloudflare/pages-action@v1
3335
with:
3436
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3537
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3638
projectName: ruby-uy
3739
directory: _site
3840
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
3941
wranglerVersion: '3'
42+
branch: ${{ github.event.pull_request.head.ref || github.ref_name }}

0 commit comments

Comments
 (0)