Skip to content

Commit 87391f5

Browse files
authored
GitHub Actions: Publish immutable action; Use release-drafter directly (#44)
1 parent 9daf3c7 commit 87391f5

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
packages: write
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/publish-immutable-action@0.0.4

.github/workflows/release-drafter.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ permissions: {}
1414

1515
jobs:
1616
release-drafter:
17-
uses: typisttech/.github/.github/workflows/release-drafter.yml@v2
17+
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
2020
pull-requests: read
21+
steps:
22+
- uses: release-drafter/release-drafter@v6
23+
env:
24+
GITHUB_TOKEN: ${{ github.token }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
See [action.yml](action.yml) and the underlying script [`typisttech/php-matrix`](https://github.com/typisttech/php-matrix/#options).
2828

2929
```yaml
30-
- uses: typisttech/php-matrix-action@v1
30+
- uses: typisttech/php-matrix-action@v2
3131
with:
3232
# Path to composer.json
3333
#
@@ -104,7 +104,7 @@ jobs:
104104
versions: ${{ steps.php-matrix.outputs.versions }}
105105
steps:
106106
- uses: actions/checkout@v4
107-
- uses: typisttech/php-matrix-action@v1
107+
- uses: typisttech/php-matrix-action@v2
108108
id: php-matrix
109109
110110
test:
@@ -139,7 +139,7 @@ jobs:
139139
steps:
140140
- uses: actions/checkout@v4
141141
142-
- uses: typisttech/php-matrix-action@v1
142+
- uses: typisttech/php-matrix-action@v2
143143
id: php-matrix
144144
145145
- uses: shivammathur/setup-php@v2
@@ -174,7 +174,7 @@ jobs:
174174
sparse-checkout: composer.json
175175
sparse-checkout-cone-mode: false
176176
177-
- uses: typisttech/php-matrix-action@v1
177+
- uses: typisttech/php-matrix-action@v2
178178
id: php-matrix
179179
180180
test:

0 commit comments

Comments
 (0)