Skip to content

Commit 7c7b8b0

Browse files
committed
Update GitHub Actions
1 parent 10ff59b commit 7c7b8b0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/generate.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
php-version: '8.0'
1717

1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Generate
2222
run: make
@@ -25,10 +25,11 @@ jobs:
2525
id: changes
2626
run: |
2727
git add -N .
28-
echo "::set-output name=count::$(git diff --name-only | wc -l)"
28+
git diff --name-only --exit-code
29+
continue-on-error: true
2930

3031
- name: Create Pull Request
31-
uses: peter-evans/create-pull-request@v3
32+
uses: peter-evans/create-pull-request@v4
3233
with:
3334
commit-message: Update Error Code
3435
delete-branch: true
@@ -37,4 +38,4 @@ jobs:
3738
Error codes have been updated.
3839
3940
- https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt
40-
if: ${{ steps.changes.outputs.count > 0 }}
41+
if: steps.changes.outcome == 'failure'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
php-version: ${{ matrix.php-version }}
2828

2929
- name: Checkout
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: Install dependencies
3333
run: composer install --quiet --no-ansi --prefer-dist --no-progress --no-interaction
@@ -36,7 +36,7 @@ jobs:
3636
run: vendor/bin/phpunit --coverage-clover=coverage.xml
3737

3838
- name: Upload coverage to Codecov
39-
uses: codecov/codecov-action@v2
39+
uses: codecov/codecov-action@v3
4040
with:
4141
token: ${{ secrets.CODECOV_TOKEN }}
4242
files: ./coverage.xml

0 commit comments

Comments
 (0)