-
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.
Update function to handle edge cases
- Loading branch information
RespaldoGIT
committed
Feb 12, 2024
1 parent
f5fc55d
commit 27939cd
Showing
2 changed files
with
35 additions
and
0 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,11 @@ | ||
{ | ||
"name": "concurrency sample", | ||
"description": "concurrency sample.", | ||
"iconName": "example-icon", | ||
"categories": [ | ||
"Automation" | ||
], | ||
"filePatterns": [ | ||
"package.json$" | ||
] | ||
} |
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,24 @@ | ||
## 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) }}" |