From 9b1132a0efb39636c3f89e8c8974672005f89b93 Mon Sep 17 00:00:00 2001 From: Adrien Kantcheff Date: Tue, 26 Aug 2025 11:58:02 +0200 Subject: [PATCH] ci(release): add workflow run name --- .../workflows/release-new-action-version.yml | 22 ++++++++++--------- README.md | 4 ++++ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-new-action-version.yml b/.github/workflows/release-new-action-version.yml index b5dd884..c5b468f 100644 --- a/.github/workflows/release-new-action-version.yml +++ b/.github/workflows/release-new-action-version.yml @@ -1,25 +1,27 @@ name: Release new action version + +run-name: Release version ${{ github.event.inputs.tag-name || github.event.release.tag_name }} + on: release: types: [released] workflow_dispatch: inputs: - TAG_NAME: - description: 'Tag name that the major tag will point to' + tag-name: + description: "Tag name that the major tag will point to (e.g. v1.0.0)" required: true env: - TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} + TAG_NAME: ${{ github.event.inputs.tag-name || github.event.release.tag_name }} + permissions: contents: write jobs: - update_tag: - name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes + release-action: runs-on: ubuntu-latest steps: - - name: Update the ${{ env.TAG_NAME }} tag - id: update-major-tag - uses: actions/publish-action@v0.3.0 - with: - source-tag: ${{ env.TAG_NAME }} + - name: Publish action ${{ env.TAG_NAME }} + uses: actions/publish-action@v0.3.0 + with: + source-tag: ${{ env.TAG_NAME }} diff --git a/README.md b/README.md index b22bbd7..b891720 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,7 @@ jobs: with: keeper-secret-config: ${{ secrets.KSM_CONFIG }} ``` + +## Release new action version + +Release a new version of the action with the dedicated workflow [Release new action version](https://github.com/bonitasoft/git-setup-action/actions/workflows/release-new-action-version.yml). \ No newline at end of file