on: workflow_dispatch: inputs: logLevel: description: 'Log level' required: true default: 'warning' type: choice options: - info - warning - debug print_tags: description: 'True to print to STDOUT' required: true type: boolean tags: description: 'Test scenario tags' required: true type...
-name:Invoke workflow in another repo with inputsuses:benc-uk/workflow-dispatch@v1with:workflow:my-workflow.yamlrepo:benc-uk/exampleinputs:'{ "message": "blah blah", "something": false }'#Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or...
name: CI on: push jobs: prod-check: if: ${{ github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest steps: - run: echo "Deploying to production server on branch $GITHUB_REF" In this example, the if statement checks the github.ref ...
jobs: example-job: runs-on: ubuntu-latest defaults: run: working-directory: ./scripts steps: - name: Check out the repository to the runner uses: actions/checkout@v4 - name: Make the script files executable run: chmod +x my-script.sh my-other-script.sh - name: Run the scripts run:...
This event allows you to run the workflow by using the GitHub REST API or by selecting the Run workflow button in the Actions tab within your repository on GitHub. Using workflow_dispatch, you can choose on which branch you want the workflow to run, as well as set optional inp...
1 change: 1 addition & 0 deletions 1 .github/workflows/build_and_test.yml Original file line numberDiff line numberDiff line change @@ -7,6 +7,7 @@ on: pull_request: branches: - main workflow_dispatch: jobs: build: 0 comments on commit 05efed8 Please sign in to comment. Footer...
import{Workflow}from'github-actions-workflow-ts'exportconstexampleWorkflow=newWorkflow('example-filename',{name:'Example',on:{workflow_dispatch:{}}}).addEnvs({SOME_KEY:'some-value',SOME_OTHER_KEY:'some-other-value'}) .addJob() This adds a single job to a Workflow ...
In addition to scheduled events, you can manually trigger a workflow by using theworkflow_dispatchevent. This event allows you to run the workflow by using the GitHub REST API or by selecting theRun workflowbutton in theActionstab within your repository on GitHub. Usingworkflow_dispatch,...
import{Workflow}from'github-actions-workflow-ts'exportconstexampleWorkflow=newWorkflow('example-filename',{name:'Example',on:{workflow_dispatch:{}}}).addEnvs({SOME_KEY:'some-value',SOME_OTHER_KEY:'some-other-value'}) .addJob() This adds a single job to a Workflow ...
workflow_dispatch: jobs: minify: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Minify CSS run: | cd ./source find . -name "*.css" -type f -exec bash -c '../minifier/minifier.sh ../source/$0 ../minified/"${0%.css}".min.css' {} ...