Skip to content

Commit

Permalink
fix on push tags trigger (#9)
Browse files Browse the repository at this point in the history
* 2

* work on on push tags
  • Loading branch information
ann8ty authored Jan 19, 2024
1 parent dfc8f04 commit c83afc0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/1_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,29 @@ jobs:
with:
fetch-depth: '0'

# this action is not triggering on push tags...
- name: Bump version and push tag
id: tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true

- name: release notes
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag.outputs.new_tag }}
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.tag.outputs.new_tag }}
generateReleaseNotes: true

- uses: dev-drprasad/[email protected]
with:
keep_latest: 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


changed_files_check:
runs-on: ubuntu-latest
needs: version
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/3_on_workflow_run.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: 3 on workflow run
run-name: 3 on workflow run ${{ github.event.workflow_run.head_branch}}

on:
workflow_run:
workflows: [2 on push tags, 1 version]
workflows: [2 on push tags]
types:
- completed

Expand All @@ -19,6 +20,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: ${{ github.event.workflow_run.head_branch}}

- uses: tj-actions/changed-files@v41
Expand Down

0 comments on commit c83afc0

Please sign in to comment.