ci(debug): Fix if job level
This commit is contained in:
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user