Skip to content

Commit

Permalink
Update on_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yakov-olkhovskiy authored Aug 12, 2022
1 parent 348f5ba commit 6514c73
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,25 @@ on: # yamllint disable-line rule:truthy
tags: '**'
workflow_dispatch:
inputs:
tags:
description: 'Test scenario tags'
tag:
description: 'Test scenario tag'
required: true
type: string

jobs:
Echo:
runs-on: ubuntu-latest
steps:
- name: Out GITHUB_REF
- name: Set test tag
if: github.event_name == 'workflow_dispatch'
run: |
echo "GITHUB_TAG=${{ inputs.tag }}" >> "$GITHUB_ENV"
- name: Get tag name
if: github.event_name != 'workflow_dispatch'
run: |
echo "GITHUB_TAG=${GITHUB_REF#refs/tags/}" >> "$GITHUB_ENV"
- name: Out GITHUB_TAG
run: |
echo "GITHUB_REF: ${GITHUB_REF}"
echo "GITHUB_REF#refs/tags/: ${GITHUB_REF#refs/tags/}"
echo "GITHUB_TAG: ${GITHUB_TAG}"

0 comments on commit 6514c73

Please sign in to comment.