Scheduling infrastructure for absolutely everyone.
fix: upgrade deprecated github actions (#14998)
Anik Dhabal Babu9bcd1d36093b
diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.ymlindex c118b59c887..1849e475761 100644--- a/.github/actions/cache-build/action.yml+++ b/.github/actions/cache-build/action.yml@@ -8,7 +8,7 @@ runs:using: "composite"steps:- name: Cache production build- uses: buildjet/cache@v3+ uses: buildjet/cache@v4id: cache-buildenv:# WARN: Don't touch this cache key. Currently github.sha refers to the latest commit in maindiff --git a/.github/actions/cache-db/action.yml b/.github/actions/cache-db/action.ymlindex 6931d193e2a..3e4ff42ad7f 100644--- a/.github/actions/cache-db/action.yml+++ b/.github/actions/cache-db/action.yml@@ -12,7 +12,7 @@ runs:steps:- name: Cache databaseid: cache-db- uses: buildjet/cache@v3+ uses: buildjet/cache@v4env:cache-name: cache-dbkey-1: ${{ hashFiles('packages/prisma/schema.prisma', 'packages/prisma/migrations/**/**.sql', 'packages/prisma/*.ts') }}diff --git a/.github/actions/dangerous-git-checkout/action.yml b/.github/actions/dangerous-git-checkout/action.ymlindex 48dca84cbeb..c2dccc4e290 100644--- a/.github/actions/dangerous-git-checkout/action.yml+++ b/.github/actions/dangerous-git-checkout/action.yml@@ -4,7 +4,7 @@ runs:using: "composite"steps:- name: Checkout repo- uses: actions/checkout@v3+ uses: actions/checkout@v4with:ref: ${{ github.event.pull_request.head.sha }}fetch-depth: 2diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.ymlindex 0ce62d38717..80cd9733950 100644--- a/.github/actions/yarn-install/action.yml+++ b/.github/actions/yarn-install/action.yml@@ -20,7 +20,7 @@ runs:using: "composite"steps:- name: Use Node ${{ inputs.node_version }}- uses: buildjet/setup-node@v3+ uses: buildjet/setup-node@v4with:node-version: ${{ inputs.node_version }}- name: Expose yarn config as "$GITHUB_OUTPUT"@@ -32,7 +32,7 @@ runs:# Yarn rotates the downloaded cache archives, @see https://github.com/actions/setup-node/issues/325# Yarn cache is also reusable between arch and os.- name: Restore yarn cache- uses: buildjet/cache@v3+ uses: buildjet/cache@v4id: yarn-download-cachewith:path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }}@@ -43,7 +43,7 @@ runs:# Invalidated on yarn.lock changes- name: Restore node_modulesid: yarn-nm-cache- uses: buildjet/cache@v3+ uses: buildjet/cache@v4with:path: "**/node_modules/"key: ${{ runner.os }}-yarn-nm-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}@@ -51,7 +51,7 @@ runs:# Invalidated on yarn.lock changes- name: Restore yarn install stateid: yarn-install-state-cache- uses: buildjet/cache@v3+ uses: buildjet/cache@v4with:path: .yarn/ci-cache/key: ${{ runner.os }}-yarn-install-state-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}diff --git a/.github/actions/yarn-playwright-install/action.yml b/.github/actions/yarn-playwright-install/action.ymlindex 601513ee765..b5d9681be5b 100644--- a/.github/actions/yarn-playwright-install/action.yml+++ b/.github/actions/yarn-playwright-install/action.yml@@ -5,7 +5,7 @@ runs:steps:- name: Cache playwright binariesid: playwright-cache- uses: buildjet/cache@v3+ uses: buildjet/cache@v4with:path: |~/Library/Caches/ms-playwrightdiff --git a/.github/workflows/api-v1-production-build.yml b/.github/workflows/api-v1-production-build.ymlindex 4dfbf2e77b5..b59e0664cb8 100644--- a/.github/workflows/api-v1-production-build.yml+++ b/.github/workflows/api-v1-production-build.yml@@ -60,7 +60,7 @@ jobs:ports:- 5432:5432steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/cache-dbdiff --git a/.github/workflows/api-v2-production-build.yml b/.github/workflows/api-v2-production-build.ymlindex 31cb8a23e0d..61e7f9be37b 100644--- a/.github/workflows/api-v2-production-build.yml+++ b/.github/workflows/api-v2-production-build.yml@@ -30,7 +30,7 @@ jobs:ports:- 5432:5432steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- run: |diff --git a/.github/workflows/cache-clean.yml b/.github/workflows/cache-clean.ymlindex 5940ab301a5..3b0f51ed1fb 100644--- a/.github/workflows/cache-clean.yml+++ b/.github/workflows/cache-clean.yml@@ -9,7 +9,7 @@ jobs:runs-on: buildjet-2vcpu-ubuntu-2204steps:- name: Check out code- uses: actions/checkout@v3+ uses: actions/checkout@v4- name: Cleanuprun: |diff --git a/.github/workflows/check-if-ui-has-changed.yml b/.github/workflows/check-if-ui-has-changed.ymlindex 0aa91d974d7..1a0bd8b9b8f 100644--- a/.github/workflows/check-if-ui-has-changed.yml+++ b/.github/workflows/check-if-ui-has-changed.yml@@ -22,7 +22,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v3+ uses: actions/checkout@v4with:ref: ${{ github.event.pull_request.head.sha }} # So we can test on forksfetch-depth: 0diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.ymlindex 85f730a3aed..3ed84d98b77 100644--- a/.github/workflows/check-types.yml+++ b/.github/workflows/check-types.yml@@ -7,7 +7,7 @@ jobs:check-types:runs-on: buildjet-4vcpu-ubuntu-2204steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- name: Show infodiff --git a/.github/workflows/cron-monthlyDigestEmail.yml b/.github/workflows/cron-monthlyDigestEmail.ymlindex ed2ec648255..d8ff0716069 100644--- a/.github/workflows/cron-monthlyDigestEmail.yml+++ b/.github/workflows/cron-monthlyDigestEmail.yml@@ -18,9 +18,9 @@ jobs:run: |LAST_DAY=$(date -d tomorrow +%d)if [ "$LAST_DAY" == "01" ]; then- echo "::set-output name=is_last_day::true"+ echo "is_last_day=true" >> "$GITHUB_OUTPUT"else- echo "::set-output name=is_last_day::false"+ echo "is_last_day=false" >> "$GITHUB_OUTPUT"fi- name: cURL requestdiff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.ymlindex 50df67ba143..b37240eb127 100644--- a/.github/workflows/crowdin.yml+++ b/.github/workflows/crowdin.yml@@ -14,7 +14,7 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4with:token: ${{ secrets.GH_ACCESS_TOKEN }}diff --git a/.github/workflows/delete-buildjet-cache.yml b/.github/workflows/delete-buildjet-cache.ymlindex 8f34eb4d23f..d63487afcbb 100644--- a/.github/workflows/delete-buildjet-cache.yml+++ b/.github/workflows/delete-buildjet-cache.yml@@ -11,7 +11,7 @@ jobs:runs-on: buildjet-2vcpu-ubuntu-2204steps:- name: Checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4- uses: buildjet/cache-delete@v1with:cache_key: ${{ inputs.cache_key }}diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.ymlindex c1dfa12661c..fcbca9f2e27 100644--- a/.github/workflows/e2e-app-store.yml+++ b/.github/workflows/e2e-app-store.yml@@ -79,7 +79,7 @@ jobs:with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-installdiff --git a/.github/workflows/e2e-embed-react.yml b/.github/workflows/e2e-embed-react.ymlindex 611b06b51b1..a1dbce9bd60 100644--- a/.github/workflows/e2e-embed-react.yml+++ b/.github/workflows/e2e-embed-react.yml@@ -71,7 +71,7 @@ jobs:with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-installdiff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.ymlindex b70cd26bdfa..4cf3c153655 100644--- a/.github/workflows/e2e-embed.yml+++ b/.github/workflows/e2e-embed.yml@@ -79,7 +79,7 @@ jobs:with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-installdiff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex 74d23c56e5a..7f4fa960043 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -77,7 +77,7 @@ jobs:with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-installdiff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.ymlindex 202898fcfcc..0b824364211 100644--- a/.github/workflows/labeler.yml+++ b/.github/workflows/labeler.yml@@ -12,7 +12,7 @@ jobs:pull-requests: writeruns-on: ubuntu-lateststeps:- - uses: actions/labeler@v4+ - uses: actions/labeler@v5with:repo-token: "${{ secrets.GITHUB_TOKEN }}"# https://github.com/actions/labeler/issues/442#issuecomment-1297359481@@ -23,7 +23,7 @@ jobs:pull-requests: writeruns-on: ubuntu-lateststeps:- - uses: actions/checkout@v2+ - uses: actions/checkout@v4- uses: equitybee/team-label-action@mainwith:repo-token: ${{ secrets.EQUITY_BEE_TEAM_LABELER_ACTION_TOKEN }}@@ -39,7 +39,7 @@ jobs:steps:- name: Apply labels from linked issue to PR- uses: actions/github-script@v5+ uses: actions/github-script@v7with:github-token: ${{ secrets.GITHUB_TOKEN }}script: |diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 9bb6f3bdf74..1244202e8f4 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -6,7 +6,7 @@ jobs:runs-on: buildjet-4vcpu-ubuntu-2204steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- name: Run Linting with Reportsdiff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.ymlindex bd0e0c1ec8f..823063321f8 100644--- a/.github/workflows/nextjs-bundle-analysis.yml+++ b/.github/workflows/nextjs-bundle-analysis.yml@@ -55,7 +55,7 @@ jobs:if: always()runs-on: buildjet-2vcpu-ubuntu-2204steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/cache-builddiff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex b29a90f65b9..f75e9baa617 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -20,9 +20,9 @@ jobs:outputs:has-files-requiring-all-checks: ${{ steps.filter.outputs.has-files-requiring-all-checks }}steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- - uses: dorny/paths-filter@v2+ - uses: dorny/paths-filter@v3id: filterwith:filters: |diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlindex 64a2a345f09..586bb47d2a8 100644--- a/.github/workflows/pre-release.yml+++ b/.github/workflows/pre-release.yml@@ -14,9 +14,9 @@ jobs:embed: ${{ steps.filter.outputs.embed }}embed-react: ${{ steps.filter.outputs.embed-react }}steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- - uses: dorny/paths-filter@v2+ - uses: dorny/paths-filter@v3id: filterwith:filters: |diff --git a/.github/workflows/production-build-without-database.yml b/.github/workflows/production-build-without-database.ymlindex c50c6734655..51949d8fd3a 100644--- a/.github/workflows/production-build-without-database.yml+++ b/.github/workflows/production-build-without-database.yml@@ -40,7 +40,7 @@ jobs:runs-on: buildjet-4vcpu-ubuntu-2204timeout-minutes: 30steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/cache-builddiff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yamlindex d0689419a03..b9aa6c9961e 100644--- a/.github/workflows/release-docker.yaml+++ b/.github/workflows/release-docker.yaml@@ -18,7 +18,7 @@ jobs:steps:- name: checkout- uses: actions/checkout@v3+ uses: actions/checkout@v4- name: "Determine tag"run: 'echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV'diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 547a5e99216..600404b92c8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -9,7 +9,7 @@ jobs:release:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4with:ref: main # Always checkout main even for tagged releasesfetch-depth: 0diff --git a/.github/workflows/submodule-sync.yml b/.github/workflows/submodule-sync.ymlindex 71e5a32ff2c..9a92204974e 100644--- a/.github/workflows/submodule-sync.yml+++ b/.github/workflows/submodule-sync.yml@@ -10,7 +10,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout Code- uses: actions/checkout@v3+ uses: actions/checkout@v4with:submodules: recursivetoken: ${{ secrets.GH_ACCESS_TOKEN }}diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.ymlindex abd06ff3a08..488b55f69d0 100644--- a/.github/workflows/unit-tests.yml+++ b/.github/workflows/unit-tests.yml@@ -9,7 +9,7 @@ jobs:timeout-minutes: 20runs-on: buildjet-2vcpu-ubuntu-2204steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install# Should be an 8GB machine as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runnersdiff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.ymlindex 5fbb5c0f1b3..d5a8a00c3db 100644--- a/.github/workflows/yarn-install.yml+++ b/.github/workflows/yarn-install.yml@@ -9,6 +9,6 @@ jobs:runs-on: buildjet-4vcpu-ubuntu-2204timeout-minutes: 10steps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install