Actionsflow #4182
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: Actionsflow | |
on: | |
schedule: | |
- cron: "*/15 * * * *" | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
workflow_dispatch: | |
inputs: | |
include: | |
description: "--include: workflow file filter, you can use glob format to filter your workflows, the default value is empty value, means no filter will be using" | |
required: false | |
default: "" | |
force: | |
description: "--force: whether force to run workflow, true or false" | |
required: false | |
default: "false" | |
verbose: | |
description: "--verbose: debug workflow, true or false" | |
required: false | |
default: "false" | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
name: Run | |
concurrency: actionsflow | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Actionsflow | |
uses: actionsflow/[email protected] | |
with: | |
args: "build --include ${{ github.event.inputs.include || ''}} -f ${{github.event.inputs.force=='true' && 'true' || 'false'}} --verbose ${{github.event.inputs.verbose=='true' && 'true' || 'false'}}" | |
json-secrets: ${{ toJSON(secrets) }} | |
json-github: ${{ toJSON(github) }} | |
- name: Setup act | |
uses: actionsflow/[email protected] | |
- name: Run act | |
run: act --workflows ./dist/workflows --secret-file ./dist/.secrets --eventpath ./dist/event.json --env-file ./dist/.env -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest |