From 6d7d3eb8db32b59e836e092763e42ee0ab6f5ad6 Mon Sep 17 00:00:00 2001 From: Saif ur Rehman Date: Mon, 9 Dec 2024 20:47:58 +0500 Subject: [PATCH] Update workflow files to specify Ubuntu version --- .github/workflows/androidBump.yml | 2 +- .github/workflows/authorChecklist.yml | 2 +- .github/workflows/buildAndroid.yml | 2 +- .github/workflows/checkE2ETestCode.yml | 2 +- .github/workflows/cherryPick.yml | 2 +- .github/workflows/createDeployChecklist.yml | 2 +- .github/workflows/createNewVersion.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/deployBlocker.yml | 2 +- .github/workflows/deployExpensifyHelp.yml | 2 +- .github/workflows/deployNewHelp.yml | 2 +- .github/workflows/e2ePerformanceTests.yml | 2 +- .github/workflows/failureNotifier.yml | 2 +- .github/workflows/finishReleaseCycle.yml | 2 +- .github/workflows/imgbot.yml | 2 +- .github/workflows/lint-changed.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/postDeployComments.yml | 2 +- .github/workflows/preDeploy.yml | 2 +- .github/workflows/prettier.yml | 2 +- .github/workflows/proposalPolice.yml | 2 +- .github/workflows/reassurePerformanceTests.yml | 2 +- .github/workflows/reviewerChecklist.yml | 2 +- .github/workflows/sendReassurePerfData.yml | 2 +- .github/workflows/shellCheck.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/testBuild.yml | 2 +- .github/workflows/testBuildHybrid.yml | 2 +- .github/workflows/typecheck.yml | 2 +- .github/workflows/updateHelpDotRedirects.yml | 2 +- .github/workflows/validateDocsRoutes.yml | 2 +- .github/workflows/validateGithubActions.yml | 2 +- .github/workflows/verifySignedCommits.yml | 2 +- .github/workflows/welcome.yml | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/androidBump.yml b/.github/workflows/androidBump.yml index e10304d1d922..8f131178be07 100644 --- a/.github/workflows/androidBump.yml +++ b/.github/workflows/androidBump.yml @@ -8,7 +8,7 @@ on: jobs: android_bump: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/authorChecklist.yml b/.github/workflows/authorChecklist.yml index 2bc94cffefd8..60c92a9c60a3 100644 --- a/.github/workflows/authorChecklist.yml +++ b/.github/workflows/authorChecklist.yml @@ -10,7 +10,7 @@ jobs: # Note: PHP specifically looks for the name of this job, "checklist", so if the name of the job is changed, # then you also need to go into PHP and update the name of this job in the GH_JOB_NAME_CHECKLIST constant checklist: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' steps: - name: Checkout diff --git a/.github/workflows/buildAndroid.yml b/.github/workflows/buildAndroid.yml index d7784e2f610b..87f0218442db 100644 --- a/.github/workflows/buildAndroid.yml +++ b/.github/workflows/buildAndroid.yml @@ -53,7 +53,7 @@ on: jobs: build: name: Build Android app - runs-on: ubuntu-latest-xl + runs-on: ubuntu-20.04 outputs: AAB_FILE_NAME: ${{ steps.build.outputs.AAB_FILE_NAME }} APK_FILE_NAME: ${{ steps.build.outputs.APK_FILE_NAME }} diff --git a/.github/workflows/checkE2ETestCode.yml b/.github/workflows/checkE2ETestCode.yml index 090b7a7f23e4..42fe18a0a579 100644 --- a/.github/workflows/checkE2ETestCode.yml +++ b/.github/workflows/checkE2ETestCode.yml @@ -11,7 +11,7 @@ on: jobs: lint: if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/cherryPick.yml b/.github/workflows/cherryPick.yml index 1772d5d309cc..46d8f5d49319 100644 --- a/.github/workflows/cherryPick.yml +++ b/.github/workflows/cherryPick.yml @@ -32,7 +32,7 @@ jobs: cherryPick: needs: createNewVersion - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout staging branch uses: actions/checkout@v4 diff --git a/.github/workflows/createDeployChecklist.yml b/.github/workflows/createDeployChecklist.yml index 9a1cac41ed69..f02d0fd59563 100644 --- a/.github/workflows/createDeployChecklist.yml +++ b/.github/workflows/createDeployChecklist.yml @@ -6,7 +6,7 @@ on: jobs: createChecklist: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/createNewVersion.yml b/.github/workflows/createNewVersion.yml index 93fe07be9298..1c108701ced9 100644 --- a/.github/workflows/createNewVersion.yml +++ b/.github/workflows/createNewVersion.yml @@ -35,7 +35,7 @@ on: jobs: validateActor: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: HAS_WRITE_ACCESS: ${{ contains(fromJSON('["write", "admin"]'), steps.getUserPermissions.outputs.PERMISSION) }} steps: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0f59295a3463..4a046781e249 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ concurrency: jobs: validateActor: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 timeout-minutes: 90 outputs: IS_DEPLOYER: ${{ fromJSON(steps.isUserDeployer.outputs.IS_DEPLOYER) || github.actor == 'OSBotify' || github.actor == 'os-botify[bot]' }} diff --git a/.github/workflows/deployBlocker.yml b/.github/workflows/deployBlocker.yml index 2707305fb43c..1ec4416ed7ed 100644 --- a/.github/workflows/deployBlocker.yml +++ b/.github/workflows/deployBlocker.yml @@ -12,7 +12,7 @@ jobs: deployBlocker: if: github.event.label.name == 'DeployBlockerCash' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/deployExpensifyHelp.yml b/.github/workflows/deployExpensifyHelp.yml index 8a6237832340..b797484420b3 100644 --- a/.github/workflows/deployExpensifyHelp.yml +++ b/.github/workflows/deployExpensifyHelp.yml @@ -28,7 +28,7 @@ jobs: build: env: IS_PR_FROM_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 continue-on-error: true steps: - name: Checkout diff --git a/.github/workflows/deployNewHelp.yml b/.github/workflows/deployNewHelp.yml index 8e455979a50e..3e6a167b52cc 100644 --- a/.github/workflows/deployNewHelp.yml +++ b/.github/workflows/deployNewHelp.yml @@ -36,7 +36,7 @@ jobs: IS_PR_FROM_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork }} # Set up a clean Ubuntu build environment - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: # We start by checking out the entire repo into a clean build environment within diff --git a/.github/workflows/e2ePerformanceTests.yml b/.github/workflows/e2ePerformanceTests.yml index c7b8a1bb7e01..deee58cf70e4 100644 --- a/.github/workflows/e2ePerformanceTests.yml +++ b/.github/workflows/e2ePerformanceTests.yml @@ -21,7 +21,7 @@ concurrency: jobs: prep: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 name: Find the baseline and delta refs, and check for an existing build artifact for that commit outputs: BASELINE_REF: ${{ steps.getBaselineRef.outputs.BASELINE_REF }} diff --git a/.github/workflows/failureNotifier.yml b/.github/workflows/failureNotifier.yml index 39dfbe8e84a7..b4e360e27797 100644 --- a/.github/workflows/failureNotifier.yml +++ b/.github/workflows/failureNotifier.yml @@ -11,7 +11,7 @@ permissions: jobs: notifyFailure: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - name: Fetch Workflow Run Jobs diff --git a/.github/workflows/finishReleaseCycle.yml b/.github/workflows/finishReleaseCycle.yml index 2285eec56065..1c47e6a8c7a0 100644 --- a/.github/workflows/finishReleaseCycle.yml +++ b/.github/workflows/finishReleaseCycle.yml @@ -7,7 +7,7 @@ on: # The updateProduction and createNewStagingDeployCash jobs are executed when a StagingDeployCash is closed. jobs: validate: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: contains(github.event.issue.labels.*.name, 'StagingDeployCash') outputs: isValid: ${{ fromJSON(steps.isDeployer.outputs.IS_DEPLOYER) && !fromJSON(steps.checkDeployBlockers.outputs.HAS_DEPLOY_BLOCKERS) }} diff --git a/.github/workflows/imgbot.yml b/.github/workflows/imgbot.yml index 5247fad8349e..21d01992519e 100644 --- a/.github/workflows/imgbot.yml +++ b/.github/workflows/imgbot.yml @@ -11,7 +11,7 @@ permissions: jobs: approveAndMerge: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: ${{ github.actor == 'imgbot[bot]' }} steps: - name: Approve imgbot PR diff --git a/.github/workflows/lint-changed.yml b/.github/workflows/lint-changed.yml index ddb640bfe9cf..484466cd49e1 100644 --- a/.github/workflows/lint-changed.yml +++ b/.github/workflows/lint-changed.yml @@ -15,7 +15,7 @@ jobs: lint-changed: name: Changed files ESLint check if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index af6bfa17fb6e..ad9dc17e403f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: lint: name: ESLint check if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/postDeployComments.yml b/.github/workflows/postDeployComments.yml index ca138be0888b..7ede8afab3bd 100644 --- a/.github/workflows/postDeployComments.yml +++ b/.github/workflows/postDeployComments.yml @@ -113,7 +113,7 @@ on: jobs: postDeployComments: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/preDeploy.yml b/.github/workflows/preDeploy.yml index bfe860e60224..334cee30821c 100644 --- a/.github/workflows/preDeploy.yml +++ b/.github/workflows/preDeploy.yml @@ -20,7 +20,7 @@ jobs: uses: ./.github/workflows/test.yml confirmPassingBuild: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: [typecheck, lint, test] if: ${{ always() }} diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index d5cff2d9b838..6b0d5cca9371 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -15,7 +15,7 @@ jobs: prettier: name: Prettier check if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/proposalPolice.yml b/.github/workflows/proposalPolice.yml index aabf2fb4f6f1..5fb6e8ea31ef 100644 --- a/.github/workflows/proposalPolice.yml +++ b/.github/workflows/proposalPolice.yml @@ -5,7 +5,7 @@ on: jobs: proposal-police-workflow: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: "!contains(fromJSON('[\"OSBotify\", \"imgbot[bot]\", \"melvin-bot[bot]\"]'), github.actor)" steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/reassurePerformanceTests.yml b/.github/workflows/reassurePerformanceTests.yml index ed5803c35b42..595ad2518bef 100644 --- a/.github/workflows/reassurePerformanceTests.yml +++ b/.github/workflows/reassurePerformanceTests.yml @@ -9,7 +9,7 @@ on: jobs: perf-tests: if: ${{ github.actor != 'OSBotify' }} - runs-on: ubuntu-latest-reassure-tests + runs-on: ubuntu-20.04-reassure-tests steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/reviewerChecklist.yml b/.github/workflows/reviewerChecklist.yml index 19aeab8a1be7..202f28167aba 100644 --- a/.github/workflows/reviewerChecklist.yml +++ b/.github/workflows/reviewerChecklist.yml @@ -6,7 +6,7 @@ jobs: # Note: PHP specifically looks for the name of this job, "checklist", so if the name of the job is changed, # then you also need to go into PHP and update the name of this job in the GH_JOB_NAME_CHECKLIST constant checklist: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/sendReassurePerfData.yml b/.github/workflows/sendReassurePerfData.yml index 6ae528557faf..ed29fa527bea 100644 --- a/.github/workflows/sendReassurePerfData.yml +++ b/.github/workflows/sendReassurePerfData.yml @@ -8,7 +8,7 @@ on: jobs: perf-tests: if: ${{ github.actor != 'OSBotify' }} - runs-on: ubuntu-latest-reassure-tests + runs-on: ubuntu-20.04-reassure-tests steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/shellCheck.yml b/.github/workflows/shellCheck.yml index 366caa8a0d19..c6a0a083b263 100644 --- a/.github/workflows/shellCheck.yml +++ b/.github/workflows/shellCheck.yml @@ -10,7 +10,7 @@ on: jobs: lint: if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36d4248fcc3c..e384758eab16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ concurrency: jobs: jest: if: ${{ github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: CI: true strategy: diff --git a/.github/workflows/testBuild.yml b/.github/workflows/testBuild.yml index 1ce493715b78..4520c5885514 100644 --- a/.github/workflows/testBuild.yml +++ b/.github/workflows/testBuild.yml @@ -15,7 +15,7 @@ env: jobs: validateActor: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: READY_TO_BUILD: ${{ fromJSON(steps.isExpensifyEmployee.outputs.IS_EXPENSIFY_EMPLOYEE) && fromJSON(steps.hasReadyToBuildLabel.outputs.HAS_READY_TO_BUILD_LABEL) }} steps: diff --git a/.github/workflows/testBuildHybrid.yml b/.github/workflows/testBuildHybrid.yml index c84fe41fddae..f5b20980b7cf 100644 --- a/.github/workflows/testBuildHybrid.yml +++ b/.github/workflows/testBuildHybrid.yml @@ -15,7 +15,7 @@ env: jobs: validateActor: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: READY_TO_BUILD: ${{ fromJSON(steps.isExpensifyEmployee.outputs.IS_EXPENSIFY_EMPLOYEE) && fromJSON(steps.hasReadyToBuildLabel.outputs.HAS_READY_TO_BUILD_LABEL) }} steps: diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 32c9e35315b3..8dbfe0cbfc89 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -14,7 +14,7 @@ concurrency: jobs: typecheck: if: ${{ github.actor != 'OSBotify' || github.event_name == 'workflow_call' }} - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/updateHelpDotRedirects.yml b/.github/workflows/updateHelpDotRedirects.yml index af24d5f17db4..a386e4986ce5 100644 --- a/.github/workflows/updateHelpDotRedirects.yml +++ b/.github/workflows/updateHelpDotRedirects.yml @@ -19,7 +19,7 @@ concurrency: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/validateDocsRoutes.yml b/.github/workflows/validateDocsRoutes.yml index ceeca1ad39f1..a4148bc7dea7 100644 --- a/.github/workflows/validateDocsRoutes.yml +++ b/.github/workflows/validateDocsRoutes.yml @@ -9,7 +9,7 @@ on: jobs: verify: if: github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/validateGithubActions.yml b/.github/workflows/validateGithubActions.yml index 700f0b68100e..2c26ce7f46f2 100644 --- a/.github/workflows/validateGithubActions.yml +++ b/.github/workflows/validateGithubActions.yml @@ -9,7 +9,7 @@ on: jobs: verify: if: github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/verifySignedCommits.yml b/.github/workflows/verifySignedCommits.yml index 9134dcd63a7a..aaed12cbf272 100644 --- a/.github/workflows/verifySignedCommits.yml +++ b/.github/workflows/verifySignedCommits.yml @@ -7,7 +7,7 @@ on: jobs: verifySignedCommits: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 1ea81129fc15..22b2630206c7 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -6,7 +6,7 @@ on: jobs: newContributorWelcomeMessage: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 if: ${{ github.actor != 'OSBotify' && github.actor != 'imgbot[bot]' }} steps: - name: Checkout