test action2
This commit is contained in:
parent
bc419eae7f
commit
a9c48ef418
1 changed files with 20 additions and 0 deletions
|
|
@ -52,10 +52,22 @@ jobs:
|
|||
fi
|
||||
echo "hosts=$HOSTS" >> $GITHUB_OUTPUT
|
||||
echo "Discovered hosts: $HOSTS"
|
||||
# Also write to file as backup (in case job outputs don't work)
|
||||
echo "$HOSTS" > hosts.json
|
||||
# Verify output was set
|
||||
echo "DEBUG: GITHUB_OUTPUT contents:"
|
||||
cat $GITHUB_OUTPUT
|
||||
|
||||
- name: Debug job outputs
|
||||
if: steps.changes.outputs.changed == 'true'
|
||||
run: |
|
||||
echo "=== Step outputs ==="
|
||||
echo "steps.changes.outputs.changed = '${{ steps.changes.outputs.changed }}'"
|
||||
echo "steps.hosts.outputs.hosts = '${{ steps.hosts.outputs.hosts }}'"
|
||||
echo "Length of hosts output: ${#HOSTS_OUT}"
|
||||
env:
|
||||
HOSTS_OUT: ${{ steps.hosts.outputs.hosts }}
|
||||
|
||||
- name: Upload flake.lock
|
||||
if: steps.changes.outputs.changed == 'true'
|
||||
uses: forgejo/upload-artifact@v4
|
||||
|
|
@ -64,6 +76,14 @@ jobs:
|
|||
path: flake.lock
|
||||
retention-days: 1
|
||||
|
||||
- name: Upload hosts list
|
||||
if: steps.changes.outputs.changed == 'true'
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: hosts-list
|
||||
path: hosts.json
|
||||
retention-days: 1
|
||||
|
||||
build:
|
||||
needs: check-updates
|
||||
if: needs.check-updates.outputs.changed == 'true' && needs.check-updates.outputs.hosts != '[]' && needs.check-updates.outputs.hosts != ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue