From fca7896de2e4d050791803de641f48cfacb74e72 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Mon, 21 Sep 2026 10:04:26 +0200 Subject: [PATCH] Add GitHub Actions workflow for testing release creation This workflow triggers on push and pull request events to test the action for creating a GitHub release. --- .../workflows/test-action-github-release.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/test-action-github-release.yml diff --git a/.github/workflows/test-action-github-release.yml b/.github/workflows/test-action-github-release.yml new file mode 100644 index 0000000..e5a524f --- /dev/null +++ b/.github/workflows/test-action-github-release.yml @@ -0,0 +1,46 @@ +name: Test action-create-github-release + +on: + push: + paths: + - .github/workflows/test-action-github-release.yml + - action-templates/actions/action-create-github-release/action.yml + pull_request: + types: + - opened + - reopened + pull_request_review: + types: + - submitted + +env: + node-version: "22" + app-path: "docs" + run-lint: "true" + run-test: "false" + +permissions: + contents: read # for checkout + +jobs: + test-create-release: + if: (github.event_name == 'push' || github.event_name == 'pull_request' || github.event.review.state == 'approved') + name: test-npm-build + runs-on: ubuntu-latest + steps: + - name: checkout-local-actions + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + with: + fetch-depth: 0 + persist-credentials: false + - uses: actions/upload-artifact@v7 + with: + path: action-templates/actions + - name: create-release + uses: ./action-templates/actions/action-create-github-release + with: + artifact-name: artifact + artifact-path: artifact.zip + skip-artifact-decompress: true + tag-name: test-test +