Skip to content

Commit

Permalink
Separate git tagging and semver tagging jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed Mar 4, 2024
1 parent 88aa020 commit 272eb9a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
repo-name:
required: true
type: string
tag:
semver-tag:
required: true
type: string

Expand All @@ -19,7 +19,7 @@ on:
required: true

jobs:
auto-git-and-semver-tag:
auto-git-tag:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}

Expand Down Expand Up @@ -82,16 +82,10 @@ jobs:
echo "New tag: ${new_tag}"
echo "new_tag=${new_tag}" >> "$GITHUB_OUTPUT"
- name: Semver tag
uses: ./.github/workflows/semver.yml@main
with:
repo-name: ${{ inputs.repo-name }}
tag: ${{ inputs.tag }}

semver-for-manually-created-tags:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
semver-for-auto-generated-tags:
needs: auto-git-tag
uses: climatepolicyradar/reusable-workflows/.github/workflows/semver.yml@main
secrets: inherit
with:
repo-name: ${{ inputs.repo-name }}
tag: ${{ inputs.tag }}
semver-tag: ${{ inputs.semver-tag }}

0 comments on commit 272eb9a

Please sign in to comment.