Skip to content

Commit

Permalink
Updated github actions to the latest versions (#1875)
Browse files Browse the repository at this point in the history
* Fixes #1559

* Fixes #1559

* Removed the ts-node dependency

* Removed the ts-node dependency

* Upgraded github actions to the latest versions

---------

Co-authored-by: Peter Harrison <[email protected]>
  • Loading branch information
palisadoes and Peter Harrison authored Feb 19, 2024
1 parent aa69fe5 commit 66709d7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml.archive
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: akhileshns/[email protected] # This is the action
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-codescan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository content
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -35,7 +35,7 @@ jobs:
- name: Restore node_modules from cache
id: cache-npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -80,14 +80,14 @@ jobs:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout code
run: git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-branch
working-directory: ${{ github.workspace }}

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.11.6'

Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate Access Token Secret
run: echo "ACCESS_TOKEN_SECRET=$(openssl rand -hex 32)" >> $GITHUB_ENV
Expand All @@ -154,7 +154,7 @@ jobs:
run: echo "REFRESH_TOKEN_SECRET=$(openssl rand -hex 32)" >> $GITHUB_ENV

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
run: npm run import:sample-data

- name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -212,7 +212,7 @@ jobs:
runs-on: ubuntu-latest
needs: Test-Application
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Check whether comments exists for JSDocs'
run: |
chmod +x ./.github/workflows/check-jsdocs-comment.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
if: github.ref == 'refs/heads/automated-docs'
# needs: Generate-Documentation
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dmnemec/[email protected]
env:
API_TOKEN_GITHUB: ${{secrets.TALAWA_DOCS_SYNC}}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# This is done as we will use the Talawa-Docs repository later too
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.TALAWA_DOCS_SYNC }}
path: api
Expand All @@ -60,7 +60,7 @@ jobs:
run: echo "REFRESH_TOKEN_SECRET=$(openssl rand -hex 32)" >> $GITHUB_ENV

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4

# Move into the api folder before installing the dependencies
- name: Install dependencies
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
# We will clone the Talawa Docs in the folder called docs so that we can copy the generated
# schema.json into the same later
- name: Checkout the Talawa-Docs repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: PalisadoesFoundation/talawa-docs
token: ${{ secrets.TALAWA_DOCS_SYNC }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
# This is done as we will use the Talawa-Docs repository later too
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate Access Token Secret
run: echo "ACCESS_TOKEN_SECRET=$(openssl rand -hex 32)" >> $GITHUB_ENV
Expand All @@ -70,7 +70,7 @@ jobs:
run: echo "REFRESH_TOKEN_SECRET=$(openssl rand -hex 32)" >> $GITHUB_ENV

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies
run: npm ci
Expand All @@ -86,7 +86,7 @@ jobs:

# Upload Coverage
- name: Present and upload coverage to Codecov as ${{env.CODECOV_UNIQUE_NAME}}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
Expand All @@ -100,7 +100,7 @@ jobs:
needs: Push-Workflow
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# with:
# persist-credentials: false
- name: Generate Documentation of HTML pages
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
if: github.ref == 'refs/heads/develop'
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{ secrets.TALAWA_DOCS_SYNC }}
Expand All @@ -175,7 +175,7 @@ jobs:
if: github.ref == 'refs/heads/automated-docs' && contains(github.event.head_commit.message, 'Trigger Documentation Workflow')
needs : Generate-Documentation
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{secrets.TALAWA_DOCS_SYNC}}
Expand Down Expand Up @@ -230,11 +230,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Restore node_modules from cache
id: cache-npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down

0 comments on commit 66709d7

Please sign in to comment.