Release Auto #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Auto | |
on: | |
workflow_dispatch: | |
inputs: | |
security-updates-only: | |
description: "Security updates only" | |
type: boolean | |
required: false | |
default: false | |
consider-snapshot: | |
description: "Consider snapshot" | |
type: boolean | |
required: false | |
default: false | |
workflow_run: | |
workflows: ["Build"] | |
types: [completed] | |
branches: | |
- main | |
- v*x.x | |
schedule: | |
# at 5:30 UTC every other month | |
- cron: "30 5 1 */2 *" | |
jobs: | |
check: | |
uses: coditory/workflows/.github/workflows/release-check.yml@v1 | |
secrets: inherit | |
if: | | |
github.event_name != 'workflow_run' | |
|| !contains(github.event.workflow_run.head_commit.message, '[ci-skip-build]') | |
with: | |
security-updates-only: ${{ inputs.security-updates-only || github.event_name == 'workflow_run' }} | |
release: | |
uses: ./.github/workflows/release.yml | |
secrets: inherit | |
needs: check | |
if: needs.check.outputs.release == 'true' |