gha: ci: Use $VAR instead of ${{ env.VAR }}

Otherwise we'll get the following error from the workflow:
```
The workflow is not valid. .github/workflows/ci-on-push.yaml (Line: 24,
Col: 20): Unrecognized named-value: 'env'. Located at position 1 within
expression: env.COMMIT_HASH .github/workflows/ci-on-push.yaml (Line: 25,
Col: 18): Unrecognized named-value: 'env'. Located at position 1 within
expression: env.PR_NUMBER
```

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-07-06 21:46:44 +02:00
parent 1a4ae1ef47
commit de83cd9de7
3 changed files with 12 additions and 12 deletions

View File

@ -15,6 +15,6 @@ jobs:
kata-containers-ci-on-push:
uses: ./.github/workflows/ci.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
pr-number: ${{ env.PR_NUMBER }}
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}-nightly
commit-hash: $COMMIT_HASH
pr-number: $PR_NUMBER
tag: $PR_NUMBER-$COMMIT_HASH-nightly

View File

@ -21,6 +21,6 @@ jobs:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
uses: ./.github/workflows/ci.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
pr-number: ${{ env.PR_NUMBER }}
tag: ${{ env.PR_NUMBER }}-${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
pr-number: $PR_NUMBER
tag: $PR_NUMBER-$COMMIT_HASH

View File

@ -12,21 +12,21 @@ jobs:
build-assets-amd64:
uses: ./.github/workflows/build-kata-static-tarball-amd64.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
push-to-registry: yes
secrets: inherit
build-assets-arm64:
uses: ./.github/workflows/build-kata-static-tarball-arm64.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
push-to-registry: yes
secrets: inherit
build-assets-s390x:
uses: ./.github/workflows/build-kata-static-tarball-s390x.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
push-to-registry: yes
secrets: inherit
@ -34,7 +34,7 @@ jobs:
needs: build-assets-amd64
uses: ./.github/workflows/publish-kata-deploy-payload-amd64.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
registry: quay.io
repo: kata-containers/kata-deploy-ci
tag: kata-containers-amd64
@ -44,7 +44,7 @@ jobs:
needs: build-assets-arm64
uses: ./.github/workflows/publish-kata-deploy-payload-arm64.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
registry: quay.io
repo: kata-containers/kata-deploy-ci
tag: kata-containers-arm64
@ -54,7 +54,7 @@ jobs:
needs: build-assets-s390x
uses: ./.github/workflows/publish-kata-deploy-payload-s390x.yaml
with:
commit-hash: ${{ env.COMMIT_HASH }}
commit-hash: $COMMIT_HASH
registry: quay.io
repo: kata-containers/kata-deploy-ci
tag: kata-containers-s390x