Update workflow to build without updates for unscheduled triggers
This commit is contained in:
parent
e2af947950
commit
8906caa083
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
update_available: ${{ steps.check.outputs.update_available }}
|
update_available: ${{ steps.check.outputs.update_available }}
|
||||||
latest_tag: ${{ steps.get_tag.outputs.latest_tag }}
|
latest_tag: ${{ steps.get_tag.outputs.latest_tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Stirling-PDF Repository
|
- name: Get Stirling-PDF Repository latest tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
latest_tag=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/tags | jq -r '.[0].name')
|
latest_tag=$(curl -s https://api.github.com/repos/Stirling-Tools/Stirling-PDF/tags | jq -r '.[0].name')
|
||||||
|
|
@ -37,7 +37,7 @@ jobs:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [check-latest-tag]
|
needs: [check-latest-tag]
|
||||||
if: needs.check-latest-tag.outputs.update_available == 'false'
|
if: needs.check-latest-tag.outputs.update_available == 'false' || github.event_name != 'schedule'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
image: ghcr.io/catthehacker/ubuntu:act-22.04
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue