-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (41 loc) · 1.31 KB
/
test-forks.yml
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
name: Test updating PR from forks
on:
workflow_dispatch:
jobs:
autoupdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Generate Sequelize Bot Token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: '${{ secrets.SEQUELIZE_BOT_APP_ID }}'
private-key: '${{ secrets.SEQUELIZE_BOT_PRIVATE_KEY }}'
- name: Configure git
run: |
git config --global user.name "sequelize[bot]"
git config --global user.email "[email protected]"
- name: Test Local Action
id: test-action
uses: ./
with:
update-pr-branches: true
update-requires-labels: 'test-pr'
update-requires-source: 'fork'
env:
GITHUB_TOKEN: '${{ steps.generate-token.outputs.token }}'
UPDATE_FORK_USERNAME: 'ephys'
UPDATE_FORK_PAT: '${{ secrets.UPDATE_BRANCH_PAT }}'
- name: Print Output
id: output
run: |
echo "Updated PRs:"
echo "${{ steps.test-action.outputs.updated-prs }}"
echo "Conflicted PRs:"
echo "${{ steps.test-action.outputs.conflicted-prs }}"