File tree Expand file tree Collapse file tree 4 files changed +22
-5
lines changed
Expand file tree Collapse file tree 4 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ inputs:
6161 required : false
6262 default : ' 30m'
6363
64+ upload :
65+ description : ' Upload flow logs as an artifact'
66+ required : false
67+ default : ' false'
68+
6469 continue-on-error :
6570 description : ' Continue workflow if flow executable fails'
6671 required : false
@@ -120,11 +125,11 @@ runs:
120125
121126 - name : Upload flow logs
122127 uses : actions/upload-artifact@v4
123- if : always()
128+ if : ${{ inputs.upload == 'true' && steps.flow-exec.outputs.exit-code != '0' }}
124129 with :
125130 name : flow-logs-${{ github.run_id }}
126131 path : ${{ inputs.working-directory }}/executable_output.txt
127- retention-days : 7
132+ retention-days : 1
128133
129134branding :
130135 icon : ' play'
Original file line number Diff line number Diff line change 11set -euo pipefail
22
3+ echo " ::group::Setup"
4+
35echo " Installing flow CLI..."
46
57if [ " ${FLOW_VERSION:- latest} " = " latest" ]; then
@@ -19,4 +21,6 @@ flow config set log-mode text
1921flow config set timeout " ${TIMEOUT:- 30m} "
2022
2123
22- echo " ✅ flow CLI installed successfully"
24+ echo " ✅ flow CLI installed successfully"
25+
26+ echo " ::endgroup::"
Original file line number Diff line number Diff line change 11set -euo pipefail
22
3+ echo " ::group::Vault Setup"
4+
35echo " Setting up flow vault and secrets..."
46
57if [ " ${SECRETS_INPUT:- {} }" != " {}" ]; then
@@ -39,4 +41,6 @@ if [ "${SECRETS_INPUT:-{}}" != "{}" ]; then
3941 echo " ✅ Vault setup completed"
4042else
4143 echo " ℹ️ No secrets to configure"
42- fi
44+ fi
45+
46+ echo " ::endgroup::"
Original file line number Diff line number Diff line change 11set -euo pipefail
22
3+ echo " ::group::Workspace Setup"
4+
35echo " Setting up flow workspaces..."
46
57mkdir -p " ${CHECKOUT_PATH:- .flow-workspaces} "
118120echo " 🔄 Syncing..."
119121flow sync
120122
121- echo " ✅ Workspace setup completed"
123+ echo " ✅ Workspace setup completed"
124+
125+ echo " ::endgroup::"
You can’t perform that action at this time.
0 commit comments