Merge pull request #349 from TaloDev/develop #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check version change | |
id: check | |
uses: EndBug/version-check@v2 | |
- name: Create tag | |
if: steps.check.outputs.changed == 'true' | |
uses: tvdias/github-tagger@v0.0.2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ steps.check.outputs.version }} | |
- name: Trigger Docker workflow | |
if: steps.check.outputs.changed == 'true' | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'docker.yml', | |
ref: '${{ steps.check.outputs.version }}' | |
}) | |
- name: Trigger Release workflow | |
if: steps.check.outputs.changed == 'true' | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'create-release.yml', | |
ref: '${{ steps.check.outputs.version }}' | |
}) |