Skip to content

Commit 7a0ba12

Browse files
committed
Set up GitHub output
1 parent 11624de commit 7a0ba12

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

action.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,25 @@ inputs:
3737
runs:
3838
using: "composite"
3939
steps:
40-
- name: Save importmap outputs
40+
- id: save-importmap-outputs
41+
name: Save importmap outputs
4142
shell: bash
4243
working-directory: ${{ inputs.rails-root }}
4344
run: |
44-
bin/importmap audit 2>&1 | tee "${{ runner.temp }}/importmap-audit.txt" || true
45-
bin/importmap outdated 2>&1 | tee "${{ runner.temp }}/importmap-outdated.txt" || true
45+
{
46+
echo importmap-audit<<IMPORTMAP_AUDIT_OUTPUT
47+
bin/importmap audit 2>&1 || true
48+
echo IMPORTMAP_AUDIT_OUTPUT
49+
} >> "$GITHUB_OUTPUT"
50+
51+
{
52+
echo importmap-outdated<<IMPORTMAP_OUTDATED_OUTPUT
53+
bin/importmap outdated 2>&1 || true
54+
echo IMPORTMAP_OUTDATED_OUTPUT
55+
} >> "$GITHUB_OUTPUT"
56+
57+
bin/importmap audit 2>&1 | tee /tmp/importmap-audit.txt || true
58+
bin/importmap outdated 2>&1 | tee /tmp/importmap-outdated.txt || true
4659
4760
- name: Run importmap-update
4861
shell: bash

0 commit comments

Comments
 (0)