mirror of
https://github.com/julia-actions/cache.git
synced 2026-02-12 09:26: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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: jq <"$GITHUB_EVENT_PATH"
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: julia-actions/setup-julia@v2
|
||||
with:
|
||||
@@ -29,7 +28,7 @@ jobs:
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Raw B"
|
||||
jq <<<"$b"
|
||||
base64 -d <<<"$b" | jq
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Diff"
|
||||
@@ -37,4 +36,4 @@ jobs:
|
||||
echo "::endgroup::"
|
||||
env:
|
||||
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:
|
||||
inputs: {}
|
||||
outputs:
|
||||
github-json:
|
||||
value: ${{ jobs.duplicate.outputs.github-json }}
|
||||
context:
|
||||
value: ${{ jobs.duplicate.outputs.context }}
|
||||
|
||||
jobs:
|
||||
duplicate:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
github-json: ${{ steps.export.outputs.github-json }}
|
||||
context: ${{ steps.export.outputs.context }}
|
||||
steps:
|
||||
- run: jq <"$GITHUB_EVENT_PATH"
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: julia-actions/setup-julia@v2
|
||||
with:
|
||||
@@ -23,10 +22,6 @@ jobs:
|
||||
- name: Export
|
||||
id: export
|
||||
run: |
|
||||
{
|
||||
echo "github-json<<EOF"
|
||||
jq <<<"$github_context"
|
||||
echo "EOF"
|
||||
} | tee -a "$GITHUB_OUTPUT"
|
||||
echo "context=$(jq -c <<<"$github_json" | base64)" | tee -a "$GITHUB_OUTPUT"
|
||||
env:
|
||||
github_context: ${{ toJSON(github) }}
|
||||
github_json: ${{ toJSON(github) }}
|
||||
|
||||
Reference in New Issue
Block a user