ci: set if commit or not
This commit is contained in:
parent
3c9ca40325
commit
67d0271ff6
1 changed files with 10 additions and 1 deletions
|
@ -5,6 +5,11 @@ on:
|
|||
description: 'Tag or commit'
|
||||
required: false
|
||||
type: string
|
||||
is_commit:
|
||||
description: 'Is commit?'
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
|
||||
schedule:
|
||||
- cron: '@hourly'
|
||||
|
@ -42,7 +47,11 @@ jobs:
|
|||
run: |
|
||||
git remote add upstream $upstream
|
||||
while read tag; do
|
||||
git fetch upstream tag $tag --no-tags
|
||||
if test ${{ inputs.is_commit }} == "true" ]; then
|
||||
git fetch upstream $tag --no-tags
|
||||
else
|
||||
git fetch upstream tag $tag --no-tags
|
||||
fi
|
||||
done < missing_tags
|
||||
- name: Packaging workflow injection
|
||||
run: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue