I'm struggling a lot with github actions. This seems to work:
- name: Tag & Push docker image
run: |
docker push myrepo/myapp:${GITHUB_SHA::8}
However, this does not:
- name: create release
uses: some-custom-action
with:
release_version: 1.0.0-${GITHUB_SHA::8}
nor this:
- name: create release
uses: some-custom-action
with:
release_version: "1.0.0-${{ env.GITHUB_SHA }}"
I'm completely new to github actions and more than a little surprised at the lacking documentation etc.
I simply need to pass a variable into the "with" parameters of a github action.
If anyone is able to help me figure out what I'm doing wrong, I'd be very grateful!