Skip to content

Commit 8dbf83e

Browse files
committed
Don't run create-issue job if there is no updates
1 parent ce7ba0c commit 8dbf83e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/check-for-updates.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ jobs:
6262

6363
- name: Upload artifact
6464
uses: actions/upload-artifact@v4
65+
if: ${{ steps.script.outputs.updated == 'yes' }}
6566
with:
6667
name: full_update_info
6768
path: ./full_update_info.json
68-
69+
6970
create-issue:
71+
if: ${{ !contains(fromJSON('["push", "pull_request"]'), github.event_name) && needs.check-for-updates.outputs.updated == 'yes' }}
7072
needs: check-for-updates
7173
runs-on: ubuntu-latest
7274
steps:
@@ -89,7 +91,6 @@ jobs:
8991
echo "AUTHOR: ${{ fromJson(steps.get_data.outputs.json_data).author }}"
9092
9193
- name: Create issue
92-
if: ${{ !contains(fromJSON('["push", "pull_request"]'), github.event_name) && needs.check-for-updates.outputs.updated == 'yes' }}
9394
uses: JasonEtco/create-an-issue@v2
9495
env:
9596
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)