Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/release-new-action-version.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).