Skip to content

Commit 0e26bc3

Browse files
committed
Update
1 parent bc53a8e commit 0e26bc3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-linux.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
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 }}" \

0 commit comments

Comments
 (0)