Skip to content

Commit 9637041

Browse files
committed
+changelog-ignore: update create-pr.yml & add auto-assign
1 parent 264c830 commit 9637041

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/auto-assign.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 🤖 Auto Assign
2+
on:
3+
issues:
4+
types: [opened, edited, labeled, unlabeled]
5+
pull_request:
6+
types: [opened, edited, labeled, unlabeled]
7+
jobs:
8+
run:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: wow-actions/auto-assign@v3
12+
with:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
reviewers: |
15+
${{ github.repository_owner }}
16+
assignees: |
17+
${{ github.repository_owner }}

.github/workflows/create-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
default: false
99
type: boolean
1010
schedule:
11-
- cron: '0 0 * * *'
11+
- cron: '0 2 * * *'
1212
jobs:
1313
get-branches:
1414
outputs:
@@ -66,10 +66,10 @@ jobs:
6666
echo "SOURCE=$SOURCE" >> $GITHUB_ENV
6767
echo "TARGET=$TARGET" >> $GITHUB_ENV
6868
- name: Run the Action
69-
if: ${{ github.event.inputs.dry-run == 'false' }}
69+
if: ${{ github.event.inputs.dry-run == 'false' }} || ${{ github.event_name == 'schedule' }}
7070
uses: devops-infra/[email protected]
7171
with:
72-
github_token: ${{ secrets.GITHUB_TOKEN }}
72+
github_token: ${{ secrets.JCDC_BOT_TOKEN}}
7373
source_branch: ${{ env.SOURCE }}
7474
target_branch: ${{ env.TARGET }}
7575
title: "Merge ${{ env.SOURCE }} into ${{ env.TARGET }}"

0 commit comments

Comments
 (0)