Skip to content

Commit

Permalink
tee all the GITHUB_OUTPUT for simple diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Apr 14, 2024
1 parent c8b804e commit 4bbafb2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions pkgs/create-neon/data/templates/ci/github/build.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Look Up Matrix Data
id: matrixData
shell: bash
run: echo "json=$(npx neon ci github | jq -rc)" >> "$GITHUB_OUTPUT"
run: echo "json=$(npx neon ci github | jq -rc)" | tee -a $GITHUB_OUTPUT
- name: Compute Matrix
id: matrix
uses: actions/github-script@{{versions.actions.githubScript}}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
shell: bash
run: |
mkdir -p dist
echo filename=$(basename $(npm pack ./platforms/{{#$}} matrix.cfg.platform {{/$}} --pack-destination=./dist --json | jq -r '.[0].filename')) >> $GITHUB_OUTPUT
echo filename=$(basename $(npm pack ./platforms/{{#$}} matrix.cfg.platform {{/$}} --pack-destination=./dist --json | jq -r '.[0].filename')) | tee -a $GITHUB_OUTPUT
- name: Release
if: {{#$}} inputs.github-release {{/$}}
uses: softprops/action-gh-release@{{versions.actions.ghRelease}}
Expand All @@ -131,7 +131,7 @@ jobs:
shell: bash
run: |
mkdir -p dist
echo "filename=$(npm pack --pack-destination=./dist)" >> $GITHUB_OUTPUT
echo "filename=$(npm pack --pack-destination=./dist)" | tee -a $GITHUB_OUTPUT
- name: Release
if: {{#$}} inputs.github-release {{/$}}
uses: softprops/action-gh-release@{{versions.actions.ghRelease}}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/create-neon/data/templates/ci/github/comments.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
if: {{#$}} github.event.issue.pull_request {{/$}}
id: pr-ref
shell: bash
run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> "$GITHUB_OUTPUT"
run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" | tee -a $GITHUB_OUTPUT
env:
REPO: {{#$}} github.repository {{/$}}
PR_NO: {{#$}} github.event.issue.number {{/$}}
Expand Down
6 changes: 3 additions & 3 deletions pkgs/create-neon/data/templates/ci/github/release.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
name: Validate Dry Run Event
if: {{#$}} inputs.dryrun {{/$}}
shell: bash
run: echo dryrun=true >> "$GITHUB_OUTPUT"
run: echo dryrun=true | tee -a $GITHUB_OUTPUT
- id: publish
name: Validate Publish Event
if: {{#$}} !inputs.dryrun {{/$}}
Expand All @@ -71,7 +71,7 @@ jobs:
echo "::error::See https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions for info about how to store GitHub repo secrets."
exit 1
fi
echo publish=true >> "$GITHUB_OUTPUT"
echo publish=true | tee -a $GITHUB_OUTPUT
- name: Checkout Code
uses: actions/checkout@{{versions.actions.checkout}}
- name: Setup Neon Environment
Expand All @@ -86,7 +86,7 @@ jobs:
git config --global user.email $ACTIONS_EMAIL
npm version -m 'v%s' '{{#$}} (inputs.version == 'custom' && inputs.custom) || inputs.version {{/$}}'
git push --follow-tags
echo tag=$(git describe --abbrev=0) >> "$GITHUB_OUTPUT"
echo tag=$(git describe --abbrev=0) | tee -a $GITHUB_OUTPUT

build:
name: Build
Expand Down
2 changes: 1 addition & 1 deletion pkgs/create-neon/data/templates/ci/github/setup.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
if: {{#$}} inputs['use-rust'] == 'true' {{/$}}
id: target
shell: bash
run: echo target=$(npx neon list-platforms | jq -r '.["{{#$}} inputs.platform {{/$}}"]') >> $GITHUB_OUTPUT
run: echo target=$(npx neon list-platforms | jq -r '.["{{#$}} inputs.platform {{/$}}"]') | tee -a $GITHUB_OUTPUT
working-directory: {{#$}} inputs.workspace {{/$}}
- name: Install Rust
if: {{#$}} inputs['use-rust'] == 'true' {{/$}}
Expand Down

0 comments on commit 4bbafb2

Please sign in to comment.