Skip to content

Check for new version #1483

Check for new version

Check for new version #1483

Workflow file for this run

name: Check for new version
on:
schedule:
- cron: "*/30 * * * *"
workflow_dispatch:
jobs:
check-version:
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: releaseVersion
uses: pozetroninc/github-action-get-latest-release@v0.8.0
with:
owner: Cysharp
repo: YetAnotherHttpHandler
excludes: prerelease, draft
- uses: mukunku/tag-exists-action@v1.6.0
id: checkTag
with:
tag: ${{ steps.releaseVersion.outputs.release }}
- name: Invoke workflow with inputs
uses: benc-uk/workflow-dispatch@v1
if: steps.checkTag.outputs.exists == 'false'
with:
workflow: build.yml
inputs: '{ "version": "${{ steps.releaseVersion.outputs.release }}" }'