Skip to content

Commit

Permalink
fix: preview workflow to use newer versions
Browse files Browse the repository at this point in the history
The code was updated for the new versions but the versions were not
updated.
zregvart committed Jan 12, 2024
1 parent 3b275bb commit fd793d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
@@ -31,9 +31,9 @@ jobs:
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Download pull request artifact
uses: actions/github-script@v4
uses: actions/github-script@v7
with:
script: |
const artifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -65,7 +65,7 @@ jobs:
DEPLOY_URL=$(yarn preview:netlify --alias="pr-${PR_NUMBER}" --message="Preview for ${PR_URL}" --json 2> /dev/null |jq -r .deploy_url)
echo "DEPLOY_URL=${DEPLOY_URL}" >> $GITHUB_ENV
echo "ISSUE_NUMBER=${PR_NUMBER}" >> $GITHUB_ENV
- uses: actions/github-script@v3
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |

0 comments on commit fd793d0

Please sign in to comment.