From ec44b45fb2b03518fcf735f307802592abd3b56d Mon Sep 17 00:00:00 2001 From: ThewBear <26767607+ThewBear@users.noreply.github.com> Date: Fri, 23 Feb 2024 15:57:29 +0000 Subject: [PATCH] Update github actions --- .github/workflows/main.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f305e8b..8de3075 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,7 +60,7 @@ jobs: env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_PROJECT: ${{ secrets.VERCEL_PROJECT }} - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 if: github.event_name == 'pull_request' with: script: | @@ -70,7 +70,7 @@ jobs: repo: context.repo.repo, body: `Preview : ${require('fs').readFileSync('previewUrl.txt', 'utf8')} 🚀` }) - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 if: github.event_name != 'pull_request' with: script: | @@ -81,9 +81,6 @@ jobs: required_contexts: [], environment: 'preview', transient_environment: true, - mediaType: { - previews: "ant-man" - } }); github.rest.repos.createDeploymentStatus({ owner: context.repo.owner, @@ -91,9 +88,6 @@ jobs: deployment_id: deployment.id, state: 'success', log_url: require('fs').readFileSync('previewUrl.txt', 'utf8'), - mediaType: { - previews: "ant-man" - } }); deploy_production: @@ -119,7 +113,7 @@ jobs: env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_PROJECT: ${{ secrets.VERCEL_PROJECT }} - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const { data: deployment } = await github.rest.repos.createDeployment({