concurrent workflow #7
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
## sample to use concurrency to avoid excessive use from GitHub agents, | |
## Avoid leaving these queue, the option cancel the older running | |
## additional use option default for setting general configuration for all tasks | |
name: concurrent workflow | |
on: [workflow_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
defaults: | |
run: | |
shell: bash | |
working-directory: . | |
runs-on: ubuntu-latest | |
steps: | |
- name: test | |
run: | | |
pwd | |
echo "${{ toJson(github.event) }}" |