mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Meta: GitHub tag action: pass GitLab URL as an env variable
GitHub action variables are not available in called shell scripts. They have to be explicitly passed from the YAML file. See: https://github.com/orgs/community/discussions/27027
This commit is contained in:
parent
37f21753ae
commit
f3d9d62776
2
.github/scripts/tag.sh
vendored
2
.github/scripts/tag.sh
vendored
|
|
@ -14,5 +14,5 @@ else
|
|||
git tag -a ${version} -m "Release ${version}"
|
||||
git push origin ${version}
|
||||
echo "Pushed new tag:"
|
||||
echo "${{github.server_url}}/${{github.repository}}/tag/${version}"
|
||||
echo "${REPO_URL}/releases/tag/${version}"
|
||||
fi
|
||||
|
|
|
|||
2
.github/workflows/tag.yaml
vendored
2
.github/workflows/tag.yaml
vendored
|
|
@ -18,3 +18,5 @@ jobs:
|
|||
|
||||
- name: Create Tag
|
||||
run: .github/scripts/tag.sh
|
||||
env:
|
||||
REPO_URL: ${{github.server_url}}/${{github.repository}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue