Skip to content

Commit

Permalink
Create refs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Oct 21, 2022
1 parent d6207cc commit 76f5ddb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/refs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Builders realeaser

on:
# For manual tests.
workflow_dispatch:
inputs:
release-tag:
description: 'Realse tag to test'
required: true
type: string
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4` or else

permissions: read-all

jobs:
# Pre-release reference verification.
pre-release-refs:
name: pre release refs verification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- name: manual release ref
env:
RELEASE_TAG: ${{ inputs.release-tag }}
if: github.ref_type != 'tag'
run: echo "tag is $RELEASE_TAG"

- name: new tag release ref
env:
RELEASE_TAG: ${{ env.GITHUB_REF_NAME }}
if: github.ref_type == 'tag'
run: echo "tag is $RELEASE_TAG"

0 comments on commit 76f5ddb

Please sign in to comment.