From 5400aeb297f17a125e2e318a766a36d19066a48e Mon Sep 17 00:00:00 2001 From: TangRufus Date: Sat, 18 Oct 2025 19:00:15 +0100 Subject: [PATCH] GitHub Actions: Publish immutable action; Use `release-drafter` directly --- .github/workflows/publish.yml | 17 +++++++++++++++++ .github/workflows/release-drafter.yml | 6 +++++- README.md | 8 ++++---- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ce19c79 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + release: + types: + - published + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + packages: write + steps: + - uses: actions/checkout@v5 + - uses: actions/publish-immutable-action@0.0.4 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 0a87ac5..e7ce716 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -14,7 +14,11 @@ permissions: {} jobs: release-drafter: - uses: typisttech/.github/.github/workflows/release-drafter.yml@v2 + runs-on: ubuntu-latest permissions: contents: write pull-requests: read + steps: + - uses: release-drafter/release-drafter@v6 + env: + GITHUB_TOKEN: ${{ github.token }} diff --git a/README.md b/README.md index cc2a203..19ef2e9 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ See [action.yml](action.yml) and the underlying script [`typisttech/php-matrix`](https://github.com/typisttech/php-matrix/#options). ```yaml - - uses: typisttech/php-matrix-action@v1 + - uses: typisttech/php-matrix-action@v2 with: # Path to composer.json # @@ -104,7 +104,7 @@ jobs: versions: ${{ steps.php-matrix.outputs.versions }} steps: - uses: actions/checkout@v4 - - uses: typisttech/php-matrix-action@v1 + - uses: typisttech/php-matrix-action@v2 id: php-matrix test: @@ -139,7 +139,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: typisttech/php-matrix-action@v1 + - uses: typisttech/php-matrix-action@v2 id: php-matrix - uses: shivammathur/setup-php@v2 @@ -174,7 +174,7 @@ jobs: sparse-checkout: composer.json sparse-checkout-cone-mode: false - - uses: typisttech/php-matrix-action@v1 + - uses: typisttech/php-matrix-action@v2 id: php-matrix test: