Skip to content

Commit

Permalink
Don't run create-issue job if there is no updates
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Jan 9, 2025
1 parent ce7ba0c commit 8dbf83e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ jobs:

- name: Upload artifact
uses: actions/upload-artifact@v4
if: ${{ steps.script.outputs.updated == 'yes' }}
with:
name: full_update_info
path: ./full_update_info.json

create-issue:
if: ${{ !contains(fromJSON('["push", "pull_request"]'), github.event_name) && needs.check-for-updates.outputs.updated == 'yes' }}
needs: check-for-updates
runs-on: ubuntu-latest
steps:
Expand All @@ -89,7 +91,6 @@ jobs:
echo "AUTHOR: ${{ fromJson(steps.get_data.outputs.json_data).author }}"
- name: Create issue
if: ${{ !contains(fromJSON('["push", "pull_request"]'), github.event_name) && needs.check-for-updates.outputs.updated == 'yes' }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 8dbf83e

Please sign in to comment.