Skip to content

Commit 89b4d07

Browse files
committed
logging improvements
1 parent 1fcf1e1 commit 89b4d07

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

action.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

129134
branding:
130135
icon: 'play'

scripts/install-flow.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set -euo pipefail
22

3+
echo "::group::Setup"
4+
35
echo "Installing flow CLI..."
46

57
if [ "${FLOW_VERSION:-latest}" = "latest" ]; then
@@ -19,4 +21,6 @@ flow config set log-mode text
1921
flow config set timeout "${TIMEOUT:-30m}"
2022

2123

22-
echo "✅ flow CLI installed successfully"
24+
echo "✅ flow CLI installed successfully"
25+
26+
echo "::endgroup::"
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set -euo pipefail
22

3+
echo "::group::Vault Setup"
4+
35
echo "Setting up flow vault and secrets..."
46

57
if [ "${SECRETS_INPUT:-{}}" != "{}" ]; then
@@ -39,4 +41,6 @@ if [ "${SECRETS_INPUT:-{}}" != "{}" ]; then
3941
echo "✅ Vault setup completed"
4042
else
4143
echo "ℹ️ No secrets to configure"
42-
fi
44+
fi
45+
46+
echo "::endgroup::"

scripts/setup-workspaces.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set -euo pipefail
22

3+
echo "::group::Workspace Setup"
4+
35
echo "Setting up flow workspaces..."
46

57
mkdir -p "${CHECKOUT_PATH:-.flow-workspaces}"
@@ -118,4 +120,6 @@ fi
118120
echo "🔄 Syncing..."
119121
flow sync
120122

121-
echo "✅ Workspace setup completed"
123+
echo "✅ Workspace setup completed"
124+
125+
echo "::endgroup::"

0 commit comments

Comments
 (0)