Skip to content

Commit

Permalink
.github: include workflow dispatch in if condition for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Sep 30, 2022
1 parent d12f15c commit 444e596
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/actions/changes-since-last-tag/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Define action name, description, and inputs
# Changes Since Last Tag is a useful helper that can check for changes in files
# based on various filters, such as extension and path. This is a useful tool
# when thinking about CI/CD to ensure we are not creating release with no diff.
name: "Changes Since Last Tag"
description: "Check for changes to any of the files since the last tag"
inputs:
Expand All @@ -15,6 +17,8 @@ runs:
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
# NOTE: There is one bug when running this with no previous versions. As
# soon as one version exists, it works as expected.
fallback: 0.0.1 # Optional fallback tag to use when no tag can be found
# Use paths-filter to determine which paths have changes
# https://github.com/dorny/paths-filter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
updates: ${{steps.changes.outputs.any == 'true'}}
if: ${{ github.event_name == 'schedule' }}
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 444e596

Please sign in to comment.