chore: remove publish workflow context dumps (#867)

This commit is contained in:
Jacob Bolda 2020-07-20 00:35:13 -05:00 committed by GitHub
parent 2684a835b5
commit 29624b004a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ jobs:
run: |
git config --global user.name "${{ github.event.pusher.name }}"
git config --global user.email "${{ github.event.pusher.email }}"
- name: covector version
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0
id: covector
with:
@ -44,37 +44,10 @@ jobs:
labels: "version updates"
body: ${{ steps.covector.outputs.change }}
dump-job-context:
runs-on: ubuntu-latest
needs: version-or-publish
steps:
- name: dump all output
env:
OUTPUT_CONTEXT: ${{ toJson(needs.version-or-publish.outputs) }}
run: echo "$OUTPUT_CONTEXT"
- name: dump covector output
env:
COVECTOR_CONTEXT: ${{ toJson(needs.version-or-publish.outputs.change) }}
run: echo "$COVECTOR_CONTEXT"
- name: test successfulPublish
if: ${{ needs.version-or-publish.outputs.successfulPublish }} == 'true'
run: echo this should be skipped
- run: echo ::set-env name=PUBLISHED::$(jq '.${{ matrix.package.name }}.command' ${{ needs.version-or-publish.outputs.change }})
- run: echo ::set-env name=PACKAGE_VERSION::$(jq '.${{ matrix.package.name }}.pkg.pkgFile.version' ${{ needs.version-or-publish.outputs.change }})
- name: test published false
if: env.PUBLISHED != 'false'
run: echo published
- name: test published start
if: startsWith(env.PUBLISHED, 'parse error') != true
run: echo published
- name: test pkg version
if: startsWith(env.PACKAGE_VERSION, 'parse error') != true
run: echo published
tangle:
runs-on: ubuntu-latest
needs: [version-or-publish, dump-job-context]
if: false && ${{ needs.version-or-publish.outputs.covector.successfulPublish }} == 'true'
needs: version-or-publish
if: ${{ needs.version-or-publish.outputs.covector.successfulPublish }} == 'true'
strategy:
fail-fast: false
matrix: