diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index ade64d3..3b0b97e 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -13,8 +13,10 @@ jobs: - name: Publish to Cloudflare Pages uses: ./ with: + # Explicit branch name needed because of: https://github.com/cloudflare/pages-action/issues/97 + branch: ${{ github.head_ref || github.ref_name }} apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: 468cce80dfb431f3a4058e6dc6031a44 + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: github-actions-example directory: example gitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/action.yml b/action.yml index 61e3f56..73ef18c 100644 --- a/action.yml +++ b/action.yml @@ -30,5 +30,5 @@ inputs: required: false default: "2" runs: - using: "node16" + using: "node20" main: "index.js"