File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 5353 echo "RELEASE=bleeding" >> $GITHUB_ENV
5454 echo "PRERELEASE=true" >> $GITHUB_ENV
5555 fi
56+ TAG_NAME=${GITHUB_REF#refs/tags/}
57+ echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
5658
5759 - name : Install
5860 run : ./scripts/linux/ci_install_core.sh
@@ -167,14 +169,9 @@ jobs:
167169 tag_name : ${{ env.RELEASE }}
168170 files : projectGenerator-linux-armv7l-gui.gz
169171
170- - name : Extract Tag Name
171- run : |
172- TAG_NAME=${GITHUB_REF#refs/tags/}
173- echo "TAG_NAME=${TAG_NAME}" >> $GITHUB_ENV
174- echo "Detected Tag: ${TAG_NAME}"
175-
176172 - name : Get Release ID for the Tag
177173 id : get_release
174+ if : github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
178175 run : |
179176 RELEASE_ID=$(curl -s \
180177 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
@@ -190,6 +187,7 @@ jobs:
190187 echo "Found Release ID: ${RELEASE_ID}"
191188
192189 - name : Update Release Description
190+ if : github.repository == 'openframeworks/projectGenerator' && github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/bleeding')
193191 run : |
194192 curl -X PATCH \
195193 -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
You can’t perform that action at this time.
0 commit comments