Skip to content

Commit

Permalink
chore: update gh actions with latest version (#3139)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen authored Oct 30, 2024
1 parent 26601f9 commit 9608a10
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dhis2-preview-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ jobs:
runs-on: ubuntu-latest
if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x

- uses: c-hive/gha-yarn-cache@v1
- uses: c-hive/gha-yarn-cache@v2
- run: yarn install --frozen-lockfile

- name: Build
run: yarn d2-app-scripts build --standalone

- name: Deploy
id: netlify-deploy
uses: nwtgck/actions-netlify@v1.2.2
uses: nwtgck/actions-netlify@v3
timeout-minutes: 1
with:
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/dhis2-verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: c-hive/gha-yarn-cache@v1
- uses: actions/checkout@v4
- uses: c-hive/gha-yarn-cache@v2
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
Expand All @@ -20,13 +20,15 @@ jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: c-hive/gha-yarn-cache@v1
- uses: c-hive/gha-yarn-cache@v2
- run: yarn install --frozen-lockfile
- id: commitlint
# This will return a config file with a .js extensions for @dhis2/cli-style v10
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
- uses: wagoid/commitlint-github-action@v4
# commitlint-github-action@v6+ requires a .mjs extension for the config file, so the highest version we can use is 5
- uses: wagoid/commitlint-github-action@v5
with:
configFile: ${{ steps.commitlint.outputs.config_path }}
32 changes: 16 additions & 16 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand All @@ -37,8 +37,8 @@ jobs:
needs: install
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand All @@ -51,7 +51,7 @@ jobs:
- name: Build
run: yarn build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: app-build
path: |
Expand All @@ -64,8 +64,8 @@ jobs:
needs: install
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand All @@ -86,8 +86,8 @@ jobs:
needs: install
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand Down Expand Up @@ -115,9 +115,9 @@ jobs:

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

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand Down Expand Up @@ -158,15 +158,15 @@ jobs:
needs: [build, lint, test, e2e]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{env.GH_TOKEN}}

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.x

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: app-build

Expand All @@ -180,11 +180,11 @@ jobs:
needs: [publish]
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{env.GH_TOKEN}}

- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 14.x

Expand Down

0 comments on commit 9608a10

Please sign in to comment.