-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.02 KB
/
example.yml
File metadata and controls
43 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Example Delegate Workflow
on:
workflow_dispatch:
inputs:
filename:
description: 'Optional file to process (e.g., INSTRUCTIONS.md)'
required: false
default: ''
branch:
description: 'Target branch'
required: false
default: 'main'
# Ensure only one instance runs at a time
concurrency:
group: delegate-${{ github.ref }}
cancel-in-progress: false
# Required permissions for the action
permissions:
contents: write
pull-requests: write
jobs:
delegate:
name: Delegate Task
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.branch || 'main' }}
fetch-depth: 0
- name: Run Delegate Action
uses: ChecKMarKDevTools/delegate-action@v1
with:
PRIVATE_TOKEN: ${{ secrets.GH_PAT }}
filename: ${{ github.event.inputs.filename }}
branch: ${{ github.event.inputs.branch }}