File tree 2 files changed +18
-14
lines changed
2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,10 @@ jobs:
103
103
name : Combine artifacts for IDF ${{ inputs.idf_branch }}
104
104
runs-on : ubuntu-latest
105
105
needs : [check-if-needed, build-libs]
106
- if : needs.check-if-needed.outputs.deploy_needed == '1'
106
+ if : |
107
+ always() &&
108
+ needs.check-if-needed.result == 'success' &&
109
+ needs.check-if-needed.outputs.deploy_needed == '1'
107
110
steps :
108
111
- uses : actions/checkout@v4
109
112
with :
Original file line number Diff line number Diff line change @@ -69,6 +69,19 @@ export LIBS_HAS_RELEASE
69
69
export LIBS_ASSET_ID
70
70
export LIBS_HAS_ASSET
71
71
72
+ if [ " $LIBS_HAS_RELEASE " == " 1" ]; then
73
+ if [ " $LIBS_HAS_ASSET " == " 0" ] || [ " $AR_HAS_COMMIT " == " 0" ]; then
74
+ echo " Deploy needed"
75
+ export DEPLOY_NEEDED=" 1"
76
+ else
77
+ echo " Deploy not needed. Skipping..."
78
+ export DEPLOY_NEEDED=" 0"
79
+ fi
80
+ else
81
+ echo " Release for tag \" $LIBS_RELEASE_TAG \" not found. Please create the release first."
82
+ exit 1
83
+ fi
84
+
72
85
echo " IDF_COMMIT: $IDF_COMMIT "
73
86
echo " AR_BRANCH: $AR_BRANCH "
74
87
echo " AR_NEW_COMMIT_MESSAGE: $AR_NEW_COMMIT_MESSAGE "
@@ -83,19 +96,7 @@ echo "LIBS_RELEASE_ID: $LIBS_RELEASE_ID"
83
96
echo " LIBS_HAS_RELEASE: $LIBS_HAS_RELEASE "
84
97
echo " LIBS_ASSET_ID: $LIBS_ASSET_ID "
85
98
echo " LIBS_HAS_ASSET: $LIBS_HAS_ASSET "
86
-
87
- if [ " $LIBS_HAS_RELEASE " == " 1" ]; then
88
- if [ " $LIBS_HAS_ASSET " == " 0" ] || [ " $AR_HAS_COMMIT " == " 0" ]; then
89
- echo " Deploy needed"
90
- export DEPLOY_NEEDED=" 1"
91
- else
92
- echo " Deploy not needed. Skipping..."
93
- export DEPLOY_NEEDED=" 0"
94
- fi
95
- else
96
- echo " Release for tag \" $LIBS_RELEASE_TAG \" not found. Please create the release first."
97
- exit 1
98
- fi
99
+ echo " DEPLOY_NEEDED: $DEPLOY_NEEDED "
99
100
100
101
if [ ! -x $GITHUB_OUTPUT ]; then
101
102
echo " idf_commit=$IDF_COMMIT " >> " $GITHUB_OUTPUT "
You can’t perform that action at this time.
0 commit comments