Skip to content

Commit

Permalink
build(gha): update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Mar 15, 2024
1 parent faea1cf commit 7ec57d6
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: composite
steps:
- name: 'Handle composer cache'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
$HOME/.composer
Expand All @@ -22,7 +22,7 @@ runs:
composer-${{ hashFiles('**/composer.json') }}-
composer-
- uses: myparcelnl/actions/pull-docker-image@v3
- uses: myparcelnl/actions/pull-docker-image@v4
with:
image: 'ghcr.io/myparcelnl/php-xd:${{ inputs.php-version }}-cli-alpine'

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/--analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ jobs:
analyse:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: myparcelnl/actions/setup-git-credentials@v3
- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
Expand All @@ -20,7 +18,7 @@ jobs:
token: ${{ steps.credentials.outputs.token }}

- name: 'Handle PHPStan cache'
uses: actions/cache@v3
uses: actions/cache@v4
id: phpstan-cache
with:
path: './.cache/phpstan'
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/--quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
quality:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- uses: myparcelnl/actions/setup-git-credentials@v3
- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
with:
app-id: ${{ secrets.MYPARCEL_APP_ID }}
Expand All @@ -26,7 +24,7 @@ jobs:
token: ${{ steps.credentials.outputs.token }}

- name: 'Handle Rector cache'
uses: actions/cache@v3
uses: actions/cache@v4
id: rector-cache
with:
path: './.cache/rector'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/--rebase-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
rebase-prs:
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
4 changes: 2 additions & 2 deletions .github/workflows/--test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4

- name: 'Handle coverage cache'
uses: actions/cache@v3
uses: actions/cache@v4
id: coverage-cache
with:
path: ./clover.xml
Expand All @@ -36,7 +36,7 @@ jobs:
# Strip the /app/ prefix from the coverage paths before uploading.
sed -i 's/\/app\///g' clover.xml
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
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:
pr-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 @@ -10,7 +10,7 @@ jobs:
pr-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:
validate-pr-title:
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 }}
23 changes: 10 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,25 @@ jobs:
outputs:
released: ${{ steps.semantic-release.outputs.released }}
steps:
- uses: actions/checkout@v4
- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
with:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GH_REPO_TOKEN }}

# TODO: Switch to v3 with app credentials when GitHub apps are allowed to bypass the merge queue. https://github.com/orgs/community/discussions/52652#discussioncomment-5647196
- uses: myparcelnl/actions/setup-git-credentials@v2
with:
token: ${{ secrets.GH_REPO_TOKEN }}
app-id: ${{ secrets.MYPARCEL_APP_ID }}
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_REPO_TOKEN }}
token: ${{ steps.credentials.outputs.token }}

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

- uses: myparcelnl/actions/semantic-release@v3
- uses: myparcelnl/actions/semantic-release@v4
id: semantic-release
with:
token: ${{ secrets.GH_REPO_TOKEN }}
token: ${{ steps.credentials.outputs.token }}
write-summary: true

rebase-prs:
Expand Down

0 comments on commit 7ec57d6

Please sign in to comment.