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:
carlfriedrich 2022-11-24 14:55:49 +01:00
parent 37f21753ae
commit f3d9d62776
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -18,3 +18,5 @@ jobs:
- name: Create Tag
run: .github/scripts/tag.sh
env:
REPO_URL: ${{github.server_url}}/${{github.repository}}