mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-20 12:56:53 +08:00
Encode to avoid GH checks
This commit is contained in:
5
.github/workflows/ReusableTest.yml
vendored
5
.github/workflows/ReusableTest.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
|||||||
duplicate:
|
duplicate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: jq <"$GITHUB_EVENT_PATH"
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
@@ -29,7 +28,7 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::Raw B"
|
echo "::group::Raw B"
|
||||||
jq <<<"$b"
|
base64 -d <<<"$b" | jq
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::Diff"
|
echo "::group::Diff"
|
||||||
@@ -37,4 +36,4 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
env:
|
env:
|
||||||
a: ${{ toJSON(github) }}
|
a: ${{ toJSON(github) }}
|
||||||
b: ${{ needs.trigger.outputs.github-json }}
|
b: ${{ needs.trigger.outputs.context }}
|
||||||
|
|||||||
15
.github/workflows/ReusableWorkflow.yml
vendored
15
.github/workflows/ReusableWorkflow.yml
vendored
@@ -4,16 +4,15 @@ on:
|
|||||||
workflow_call:
|
workflow_call:
|
||||||
inputs: {}
|
inputs: {}
|
||||||
outputs:
|
outputs:
|
||||||
github-json:
|
context:
|
||||||
value: ${{ jobs.duplicate.outputs.github-json }}
|
value: ${{ jobs.duplicate.outputs.context }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
duplicate:
|
duplicate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
github-json: ${{ steps.export.outputs.github-json }}
|
context: ${{ steps.export.outputs.context }}
|
||||||
steps:
|
steps:
|
||||||
- run: jq <"$GITHUB_EVENT_PATH"
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- uses: julia-actions/setup-julia@v2
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
@@ -23,10 +22,6 @@ jobs:
|
|||||||
- name: Export
|
- name: Export
|
||||||
id: export
|
id: export
|
||||||
run: |
|
run: |
|
||||||
{
|
echo "context=$(jq -c <<<"$github_json" | base64)" | tee -a "$GITHUB_OUTPUT"
|
||||||
echo "github-json<<EOF"
|
|
||||||
jq <<<"$github_context"
|
|
||||||
echo "EOF"
|
|
||||||
} | tee -a "$GITHUB_OUTPUT"
|
|
||||||
env:
|
env:
|
||||||
github_context: ${{ toJSON(github) }}
|
github_json: ${{ toJSON(github) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user