Skip to content

Commit

Permalink
workflows. update files
Browse files Browse the repository at this point in the history
  • Loading branch information
edospadoni committed May 24, 2024
1 parent 6906c49 commit c358d0a
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,34 @@ on:

jobs:
tagging:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Get Previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found

- name: Get tag name without extra info
uses: jungwinter/split@master
id: branch
with:
msg: ${{ steps.previoustag.outputs.tag }}
separator: "-"
maxsplit: -1

- name: Get short sha
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Push tag
uses: EndBug/latest-tag@latest
with:
# You can change the name of the tag with this input.
# Default: 'latest'
tag-name: ${{ steps.branch.outputs._0 }}-dev-${{ steps.vars.outputs.sha_short }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Get Previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found

- name: Get tag name without extra info
uses: jungwinter/split@master
id: branch
with:
msg: ${{ steps.previoustag.outputs.tag }}
separator: "-"
maxsplit: -1

- name: Get short sha
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Push tag
uses: EndBug/latest-tag@latest
with:
# You can change the name of the tag with this input.
# Default: 'latest'
tag-name: ${{ steps.branch.outputs._0 }}-dev-${{ steps.vars.outputs.sha_short }}

release:
needs: tagging
Expand Down

0 comments on commit c358d0a

Please sign in to comment.