diff --git a/.changeset/tall-pugs-check.md b/.changeset/tall-pugs-check.md new file mode 100644 index 00000000..290d63e2 --- /dev/null +++ b/.changeset/tall-pugs-check.md @@ -0,0 +1,5 @@ +--- +"github-actions-cloudflare-pages": patch +--- + +fix: delete action use node24 diff --git a/.github/workflows/deploy-delete.yml b/.github/workflows/deploy-delete.yml index 63cc1895..b974712e 100644 --- a/.github/workflows/deploy-delete.yml +++ b/.github/workflows/deploy-delete.yml @@ -13,7 +13,7 @@ concurrency: group: deploy-delete-${{ github.head_ref || github.run_id }} jobs: - cloudflare-pages-deploy-delete: + deploy-delete: permissions: actions: read contents: read diff --git a/.github/workflows/deploy-main.yml b/.github/workflows/deploy-main.yml index 13a675f8..0a050a09 100644 --- a/.github/workflows/deploy-main.yml +++ b/.github/workflows/deploy-main.yml @@ -9,7 +9,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} jobs: - cloudflare-pages-deploy: + deploy-main: permissions: actions: read contents: read diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 05217070..153efd81 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,19 +7,13 @@ on: - test types: - completed - workflow_dispatch: - inputs: - environment: - description: 'Environment to run actiomn against' - type: environment - required: false concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} jobs: - cloudflare-pages-deploy: - if: ${{ github.event_name != 'workflow_run' || (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.head_branch != 'main') }} + deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} permissions: actions: read contents: read @@ -43,5 +37,5 @@ jobs: cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }} directory: dist github-token: ${{ secrets.GITHUB_TOKEN }} - github-environment: ${{ inputs.environment || 'preview' }} + github-environment: 'preview' working-directory: example diff --git a/delete/action.yml b/delete/action.yml index f21ddcf4..b8b4edbc 100644 --- a/delete/action.yml +++ b/delete/action.yml @@ -21,5 +21,5 @@ inputs: required: false runs: - using: node20 + using: node24 main: ../dist/delete/index.js