Skip to content

Commit

Permalink
Add revision offset for plugins coming from svn
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmock committed Aug 14, 2024
1 parent a68ef99 commit f8cfc31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ on:
default: false
required: false
description: "Set to true if you want to automatically tag every push to the main branch for use with releasing"
revision-offset:
type: number
default: 0
required: false
description: "Set to an offset for automatic tagging. For example, if the last plugin version was 100, but there are only 20 commits, then this should be 80"
outputs:
tag:
description: "The release tag"
Expand Down Expand Up @@ -74,7 +79,7 @@ jobs:
id: create_revision
# Count the total commits for this branch
run: |
revision="v$(git rev-list --count HEAD)"
revision="v$(($(git rev-list --count HEAD) + ${{ inputs.revision-offset }}))"
git tag $revision
git push -u origin $revision
echo "revision=$revision" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f8cfc31

Please sign in to comment.