Skip to content

Commit 88f5249

Browse files
committed
Update GitHub Actions
1 parent 67d03bc commit 88f5249

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717

1818
- name: Setup PHP, with composer and extensions
1919
uses: shivammathur/setup-php@v2
@@ -22,7 +22,7 @@ jobs:
2222
coverage: none
2323

2424
- name: Cache composer dependencies
25-
uses: actions/cache@v2
25+
uses: actions/cache@v3
2626
with:
2727
path: ~/.cache/composer
2828
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Checkout
47-
uses: actions/checkout@v2
47+
uses: actions/checkout@v3
4848

4949
- name: Setup PHP, with composer and extensions
5050
uses: shivammathur/setup-php@v2
@@ -55,7 +55,7 @@ jobs:
5555
tools: cs2pr
5656

5757
- name: Cache composer dependencies
58-
uses: actions/cache@v2
58+
uses: actions/cache@v3
5959
with:
6060
path: ~/.cache/composer
6161
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -71,20 +71,15 @@ jobs:
7171
runs-on: ubuntu-latest
7272
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
7373
steps:
74-
- uses: actions/checkout@v2
74+
- uses: actions/checkout@v3
7575
with:
7676
ref: ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version
7777

78-
# Create release
7978
- name: Get release info
80-
id: release-info
81-
run: |
82-
echo "::set-output name=subject::$(git tag --format '%(contents:subject)' --points-at)"
83-
git tag --format '%(contents:body)' --points-at > release-body.txt
84-
- uses: actions/create-release@v1
79+
run: git tag --format '%(contents:body)' --points-at > release-body.txt
80+
81+
- uses: ncipollo/release-action@v1
8582
env:
8683
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
8784
with:
88-
tag_name: ${{ github.ref }}
89-
release_name: ${{ steps.release-info.outputs.subject }}
90-
body_path: release-body.txt
85+
bodyFile: release-body.txt

0 commit comments

Comments
 (0)