Skip to content

Start a github workflow on a tag name and build based on that specific tag #25566

Answered by oth-libs
oth-libs asked this question in Actions
Discussion options

You must be logged in to vote

Thanks @brightran , but I just figured out what I needed. it was actually more like this: 

on:
  push:
    tags:
      - '*productionDebug*'
..
..
  - name: Get tag name
    id: get_tag_name
    run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
  - uses: actions/checkout@v1
    with:
      ref: ${{ steps.get_tag_name.outputs.VERSION }}

so I wanted to trigger the build with a tag containing a keyword and then building based on that whole tag name, while keeping it generic.

cheers

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants