chore(deps): update actions/checkout action to v6 - autoclosed #571
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| Deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: ${{ github.ref_name == 'main' && 'production' || 'preview' }} | |
| url: ${{ steps.deploy.outputs.deployment-url }} | |
| steps: | |
| - uses: marocchino/sticky-pull-request-comment@v2 | |
| name: Show wip message in sticky comment | |
| with: | |
| message: "Version Preview URL: ⏳deployment is in progress..." | |
| - uses: actions/checkout@v6 | |
| - uses: ./.github/actions/setup | |
| - uses: nemolize/set-wrangler-name@v1 | |
| - run: pnpm run build | |
| - id: deploy | |
| name: Deploy | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| command: ${{ github.event_name == 'push' && 'deploy' || 'versions upload' }} | |
| - if: ${{ github.event_name == 'pull_request' }} | |
| name: Show version preview URL in sticky comment | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| message: "Version Preview URL: ${{ steps.deploy.outputs.deployment-url }}" | |
| - if: failure() | |
| name: Show error message in sticky comment | |
| uses: marocchino/sticky-pull-request-comment@v2 | |
| with: | |
| message: "Version Preview URL: ❌deployment failed." |