-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make example workflow that calls main workflow
example is meant to be copied to other repos avoids having to redo the setup stuff, can handle from this repo
- Loading branch information
Showing
2 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is an example workflow, which you should copy to your own mod repository to create a usable action from it | ||
# This workflow calls the reusable main workflow that handles setting up and running python | ||
|
||
# can modify these two for labelling purposes | ||
name: 'Deploy Stellaris mod update' | ||
|
||
run-name: "${{ github.actor }} triggered a ${{ inputs.versionType }} update for ${{ github.event.repository.name }}" | ||
|
||
on: | ||
# for calling manually and getting input popups | ||
workflow_dispatch: | ||
inputs: | ||
versionType: | ||
description: 'Version type to bump, follows semantic versioning' | ||
required: true | ||
default: 'Patch' | ||
type: choice | ||
options: | ||
- 'Major' | ||
- 'Minor' | ||
- 'Patch' | ||
versionStellaris: | ||
description: 'Stellaris version to support' | ||
required: true | ||
type: string | ||
useChangelog: | ||
description: | | ||
Fill in changelog for release? | ||
Expects a CHANGELOG.md file in target repo | ||
required: true | ||
type: boolean | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
use_updateStellarisMod_workflow: | ||
uses: aerolfos/stellaris_mod_deploy_action/.github/workflows/updateStellarisMod.yml@main | ||
with: | ||
versionType: ${{ inputs.versionType }} | ||
versionStellaris: ${{ inputs.versionStellaris }} | ||
useChangelog: ${{ inputs.useChangelog }} | ||
|
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