Skip to content

Commit

Permalink
build(gha): update used actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Feb 8, 2024
1 parent f5f0667 commit 520915f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
assign-author:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-assign-author@v3
- uses: myparcelnl/actions/pr-assign-author@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
label:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-label-by-review@v3
- uses: myparcelnl/actions/pr-label-by-review@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/pr-validate-title-conventional@v3
- uses: myparcelnl/actions/pr-validate-title-conventional@v4
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
10 changes: 5 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
persist-credentials: false
token: ${{ secrets.GH_REPO_TOKEN }}

# TODO: Switch to v3 with app credentials when GitHub apps are allowed to bypass status checks. https://github.com/orgs/community/discussions/43460
# TODO: Switch to v4 with app credentials when GitHub apps are allowed to bypass status checks. https://github.com/orgs/community/discussions/43460
- uses: myparcelnl/actions/setup-git-credentials@v2
with:
token: ${{ secrets.GH_REPO_TOKEN }}

- uses: myparcelnl/actions/yarn-install@v3
- uses: myparcelnl/actions/yarn-install@v4
with:
node-version: ${{ vars.NODE_VERSION }}

- uses: ./.github/actions/build

- uses: myparcelnl/actions/semantic-release@v3
- uses: myparcelnl/actions/semantic-release@v4
with:
token: ${{ secrets.GH_REPO_TOKEN }}
env:
Expand All @@ -46,13 +46,13 @@ jobs:
if: always()
runs-on: ubuntu-22.04
steps:
- uses: myparcelnl/actions/setup-git-credentials@v3
- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}

- uses: peter-evans/rebase@v2
- uses: peter-evans/rebase@v3
with:
token: ${{ steps.credentials.outputs.token }}
base: ${{ github.ref_name }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:

- name: 'Handle coverage cache'
if: matrix.node-version == vars.NODE_VERSION
uses: actions/cache@v3
uses: actions/cache@v4
id: coverage-cache
with:
path: coverage/clover.xml
key: coverage-${{ hashFiles('package.json', 'yarn.lock', 'tsconfig.json', 'src/**/*', 'test/**/*') }}

- uses: myparcelnl/actions/yarn-install@v3
- uses: myparcelnl/actions/yarn-install@v4
if: matrix.node-version != vars.NODE_VERSION || steps.coverage-cache.outputs.cache-hit != 'true'
with:
node-version: ${{ matrix.node-version }}
Expand All @@ -43,7 +43,7 @@ jobs:
run: |
yarn test:run
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
if: matrix.node-version == vars.NODE_VERSION
with:
files: coverage/clover.xml
Expand Down

0 comments on commit 520915f

Please sign in to comment.