feat: add GITHUB_REF_NAME env var

GITHUB_REF_NAME will contain the reference name (branch or tag)
  - based on GITHUB_HEAD_REF in a pull-request event context,
  - based on GITHUB_REF in others event contexts.
This commit is contained in:
Antoine Méausoone
2021-09-15 17:00:11 +02:00
committed by GitHub
parent b71a8a1cbc
commit 12a7510630
7 changed files with 146 additions and 30 deletions

View File

@@ -18,7 +18,7 @@ jobs:
with:
branches: |
[
"${{ env.GITHUB_REF_SLUG }}"
"${{ env.GITHUB_REF_NAME }}"
]
dry_run: true
env: