Skip to content

Commit

Permalink
revome quotes from token
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Jun 21, 2024
1 parent 9722ae3 commit 0668584
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy-preview:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
id: deployment
with:
step: start
token: "${{ github.token }}"
token: ${{ github.token }}
env: ${{ github.event.repository.name }}
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -65,14 +65,14 @@ jobs:
- uses: bobheadxi/deployments@v1
with:
step: finish
token: "${{ github.token }}"
token: ${{ github.token }}
status: ${{ job.status }}
env: ${{ steps.deployment.outputs.env }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: https://${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }}/pr-${{ github.event.number }}/index.html

- name: Shorten commit SHA
run: echo "short_sha=$(echo ${{ github.sha }} | cut -c1-10)" >> $GITHUB_ENV
run: echo "short_sha=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV

- name: Find tear-down comment
uses: peter-evans/find-comment@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-env-teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [unlabeled, closed]

jobs:
tear-dowm-preview-env:
tear-down-preview-env:
if: github.event.label.name == 'deploy' || (github.event.action == 'closed' && contains( github.event.pull_request.labels.*.name, 'deploy'))
runs-on: ubuntu-22.04
timeout-minutes: 20
Expand Down

0 comments on commit 0668584

Please sign in to comment.