File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 75
75
env :
76
76
PYTHONUNBUFFERED : ' 1'
77
77
78
+ - name : Determine which artifacts to upload
79
+ id : build_artifacts
80
+ run : |
81
+ OLD=${{ needs.check.outputs.old }}
82
+ NEW=${{ needs.check.outputs.new }}
83
+ ARTIFACTS="YOURLS-update-$OLD-to-$NEW.zip YOURLS-update-$OLD-to-$NEW.txt"
84
+
85
+ if [ -f "YOURLS-update-$OLD-to-$NEW.removed.txt" ]; then
86
+ ARTIFACTS="$ARTIFACTS YOURLS-update-$OLD-to-$NEW.removed.txt"
87
+ fi
88
+
89
+ echo "artifact_files=$ARTIFACTS" >> $GITHUB_OUTPUT
90
+
78
91
- name : Create Release & Upload Patch
79
92
uses : ncipollo/release-action@v1
80
93
with :
83
96
bodyFile : YOURLS-update-${{ needs.check.outputs.old }}-to-${{ needs.check.outputs.new }}.summary.txt
84
97
draft : false
85
98
prerelease : false
86
- artifacts : |
87
- YOURLS-update-${{ needs.check.outputs.old }}-to-${{ needs.check.outputs.new }}.zip
99
+ artifacts : ${{ steps.build_artifacts.outputs.artifact_files }}
88
100
env :
89
101
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102
+
You can’t perform that action at this time.
0 commit comments