We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a42d5 commit 8681147Copy full SHA for 8681147
1 file changed
.github/workflows/pr-storybook-build.yml
@@ -56,11 +56,6 @@ jobs:
56
fi
57
58
59
- mkdir -p preview_meta
60
- cat > preview_meta/meta.json <<EOF
61
- { "pr_number": ${PR_NUMBER}, "action": "${ACTION}" }
62
- EOF
63
-
64
echo "action=$ACTION" >> "$GITHUB_OUTPUT"
65
echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"
66
@@ -71,6 +66,15 @@ jobs:
71
submodules: true
72
67
fetch-depth: 1
73
68
69
+ - name: Write meta artifact
70
+ if: always()
+ shell: bash
+ run: |
+ mkdir -p preview_meta
74
+ printf '{ "pr_number": %s, "action": "%s" }\n' \
75
+ '${{ steps.meta.outputs.pr_number }}' \
76
+ '${{ steps.meta.outputs.action }}' > preview_meta/meta.json
77
+
78
- name: Use Node.js
79
if: steps.meta.outputs.action == 'deploy'
80
uses: actions/setup-node@v4
0 commit comments