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