Skip to content

Commit

Permalink
Update function to handle edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
RespaldoGIT committed Feb 12, 2024
1 parent f5fc55d commit 27939cd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
11 changes: 11 additions & 0 deletions workflow-templates/concurrency.properties.json
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$"
]
}
24 changes: 24 additions & 0 deletions workflow-templates/concurrency.yml
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) }}"

0 comments on commit 27939cd

Please sign in to comment.