I can get repoowner/repo-name
with ${{ github.repository }}
but I like to get just the repo-name
.
While I am at it.
GitLab has a straight forward variable for this.
How do I get reference access env variables from the .yaml
not inside scripts? Does ${{ $ENV_VAR }}
work? Probably not.
Is there a way to remove or replace the slashes directly in the yaml?
build:
needs: test
name: Build release Zip
runs-on: ubuntu-latest
env:
DEPLOY_REF: ${{ github.sha }}
DEPLOY_REF_SHORT: ${{ github.sha }}
DEPLOY_ZIPFILE: ${{ github.workspace }}/build/zip/${{ github.repository }}-${{ github.sha }}.zip
steps: