From ae44c6446a6cab55b78bafc9be8b1314028f1aae Mon Sep 17 00:00:00 2001 From: prayansh_chhablani <135210710+prayanshchh@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:26:04 +0530 Subject: [PATCH] Update all GitHub Actions to the latest versions (#2690) * Update all GitHub Actions to the latest versions --- .github/workflows/codeql-codescan.yml | 2 +- .github/workflows/issue.yml | 4 +-- .github/workflows/pull-request-target.yml | 4 +-- .github/workflows/pull-request.yml | 14 +++++----- .github/workflows/stale.yml | 32 +++++++++++------------ 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/codeql-codescan.yml b/.github/workflows/codeql-codescan.yml index 64135c9b2f..ced4cf2082 100644 --- a/.github/workflows/codeql-codescan.yml +++ b/.github/workflows/codeql-codescan.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index bef52e9a02..730cb5941a 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -18,7 +18,7 @@ jobs: name: Adding Issue Label runs-on: ubuntu-latest steps: - - uses: Renato66/auto-label@v2.3.0 + - uses: Renato66/auto-label@v3.1.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ignore-comments: true @@ -28,7 +28,7 @@ jobs: name: Greeting Message to User runs-on: ubuntu-latest steps: - - uses: actions/first-interaction@v1 + - uses: actions/first-interaction@v1.3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} issue-message: "Congratulations on making your first Issue! :confetti_ball: If you haven't already, check out our [Contributing Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/develop/CONTRIBUTING.md) and [Issue Reporting Guidelines](https://github.com/PalisadoesFoundation/talawa/blob/develop/ISSUE_GUIDELINES.md) to ensure that you are following our guidelines for contributing and making issues." diff --git a/.github/workflows/pull-request-target.yml b/.github/workflows/pull-request-target.yml index fde5f05808..5ec0ae5ec4 100644 --- a/.github/workflows/pull-request-target.yml +++ b/.github/workflows/pull-request-target.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Add the PR Review Policy - uses: thollander/actions-comment-pull-request@v2 + uses: thollander/actions-comment-pull-request@v3.0.1 with: comment_tag: pr_review_policy message: | @@ -67,7 +67,7 @@ jobs: 2. Read the CONTRIBUTING.md file make - name: Greeting Message to User - uses: actions/first-interaction@v1 + uses: actions/first-interaction@v1.3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} pr-message: "Congratulations on making your first PR! :confetti_ball: If you haven't already, check out our [Contributing Guidelines](https://github.com/PalisadoesFoundation/talawa-api/blob/-/CONTRIBUTING.md) and [PR Reporting Guidelines](https://github.com/PalisadoesFoundation/talawa-api/blob/-/PR_GUIDELINES.md) to ensure that you are following our guidelines for contributing and creating PR." diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e2dd8af2ca..03b40aaeb7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Build talawa api non production environment docker image run: docker buildx build --file ./docker/api.Containerfile --tag talawa_api --target non_production ./ - name: Check type errors @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Build talawa api non production environment docker image run: docker buildx build --file ./docker/api.Containerfile --tag talawa_api --target non_production ./ - name: Check gql tada @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Build talawa api non production environment docker image run: docker buildx build --file ./docker/api.Containerfile --tag talawa_api --target non_production ./ - name: Check drizzle migrations @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Build talawa api non production environment docker image run: docker buildx build --file ./docker/api.Containerfile --tag talawa_api --target non_production ./ - name: Check type errors @@ -66,10 +66,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - id: changed_files name: Get changed files - uses: tj-actions/changed-files@v45 + uses: tj-actions/changed-files@v45.0.4 with: files: | .coderabbit.yaml @@ -95,7 +95,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout this repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Create .env file for talawa api testing environment run: cp ./envFiles/.env.ci ./.env - name: Build talawa api compose testing environment diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 24667f8e06..3f38693a9d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -25,19 +25,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v8 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.' - stale-pr-message: 'This pull request did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.' - close-issue-message: 'This issue did not get any activity in the past 180 days and thus has been closed. Please check if the newest release or develop branch has it fixed. Please, create a new issue if the issue is not fixed.' - close-pr-message: 'This pull request did not get any activity in the past 180 days and thus has been closed.' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' - days-before-stale: 10 - days-before-close: 180 - remove-stale-when-updated: true - exempt-all-milestones: true - exempt-pr-labels: 'wip' - exempt-issue-labels: 'wip' - operations-per-run: 30 + - uses: actions/stale@v9.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.' + stale-pr-message: 'This pull request did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.' + close-issue-message: 'This issue did not get any activity in the past 180 days and thus has been closed. Please check if the newest release or develop branch has it fixed. Please, create a new issue if the issue is not fixed.' + close-pr-message: 'This pull request did not get any activity in the past 180 days and thus has been closed.' + stale-issue-label: 'no-issue-activity' + stale-pr-label: 'no-pr-activity' + days-before-stale: 10 + days-before-close: 180 + remove-stale-when-updated: true + exempt-all-milestones: true + exempt-pr-labels: 'wip' + exempt-issue-labels: 'wip' + operations-per-run: 30