ci(debug): Fix if job level

This commit is contained in:
Carlos Álvaro
2021-11-06 11:46:57 +01:00
parent 8bec28ce4d
commit cc0418c55e

View File

@@ -17,7 +17,6 @@ env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
CACHE_PATH: /tmp/.buildx-docker-salt-master-cache
EXTRA_REGISTRIES: ghcr.io quay.io
DEBUG: true
jobs:
metadata:
@@ -59,10 +58,10 @@ jobs:
echo ::set-output name=created_on::${CREATED_ON}
- name: Dump environment
if: ${{ env.DEBUG }} == 'true'
if: contains(toJSON(github.event.commits.*.message), 'ci(debug)') == true
run: env | sort
- name: Dump GitHub context
if: ${{ env.DEBUG }} == 'true'
if: contains(toJSON(github.event.commits.*.message), 'ci(debug)') == true
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "${GITHUB_CONTEXT}"
@@ -71,7 +70,7 @@ jobs:
name: Publish
runs-on: ubuntu-latest
needs: metadata
if: ${{ env.DEBUG }} != 'false'
if: contains(toJSON(github.event.commits.*.message), 'ci(debug)') == false
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0