Test updating PR from forks #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |