File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Manage Stale Branches
1+ name : Manage stale branches
22
33permissions :
44 contents : write
1717 RepoBranchSkipList : ' [
1818 "automation"
1919 ]'
20- ReportOnly : true
20+ ReportOnly : false
2121 secrets :
2222 AccessToken : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 66jobs :
77 on-branch-create :
88 if : startsWith(github.ref, 'refs/heads/')
9- runs-on : ubuntu -latest
9+ runs-on : windows -latest
1010 steps :
11- - name : Validate name
12- run : |
13- INVALID_CHARS='[<>:"/\\|?*]'
14- if [[ "${{ github.ref_name }}" =~ $INVALID_CHARS ]]; then
15- echo "Error: Branch name '${{ github.ref_name }}' created by ${{ github.actor }} contains invalid characters."
16- exit 1
17- else
18- echo "Branch name '${{ github.ref_name }}' is valid."
19- fi
11+ - name : Try checkout
12+ uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments