Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tags after semantic release created a pre-release #88

Open
Th3S4mur41 opened this issue Dec 11, 2023 · 1 comment
Open

Create tags after semantic release created a pre-release #88

Th3S4mur41 opened this issue Dec 11, 2023 · 1 comment

Comments

@Th3S4mur41
Copy link

semantic-release, created version v2.0.0 from the next branch for an upcoming release

I would've expected actions-tagger to create as the v2 tag but it didn't.
Potential root causes:

  • Action absolutely requires the release or push-tag trigger
  • v2.0.0 was released as pre-release on GithHub and not tagged with latest.
  • v2.0.0 was created from the next branch, which is not the default branch (main)

Here the wokflow:

on:
  workflow_run:
    workflows: [Checks]
    types: [completed]
    branches: [main, next, beta, alpha]

jobs:
  semantic-release:
    if: ${{ github.event.workflow_run.conclusion == 'success' }}
    uses: ./.github/workflows/semantic-release.yml
    secrets:
      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
      GH_TOKEN: ${{ secrets.GH_TOKEN }}


  actions-tagger:
    needs: [semantic-release]
    runs-on: ubuntu-latest

    steps:
      - uses: Actions-R-Us/actions-tagger@latest
        with:
          publish_latest_tag: ${{ github.ref_name == 'main' }}
          token: ${{ secrets.GH_TOKEN }}
@jamacku
Copy link

jamacku commented Apr 24, 2024

You are probably looking for:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants