Skip to content

Commit 5a3083d

Browse files
committed
update work flow
1 parent f6939be commit 5a3083d

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/manage_stale_branches.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Manage Stale Branches
1+
name: Manage stale branches
22

33
permissions:
44
contents: write
@@ -17,6 +17,6 @@ jobs:
1717
RepoBranchSkipList: '[
1818
"automation"
1919
]'
20-
ReportOnly: true
20+
ReportOnly: false
2121
secrets:
2222
AccessToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validate_branch_names.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ on:
66
jobs:
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

0 commit comments

Comments
 (0)