-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow test new sync configurations
- Loading branch information
kendal
committed
May 23, 2024
1 parent
3ba1952
commit cf2e052
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This workflow is for testing whether a fork can be synced. | ||
# | ||
# It can be used to verify whether the BCNY Fork Syncer app has | ||
# been properly authenticated and that there are no pre-existing | ||
# merge conflicts when setting up a new job to sync a forked project. | ||
|
||
name: Try sync fork | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
fork_repo: | ||
description: The forked repository to sync (without the 'thebrowsercompany/' prefix). | ||
required: true | ||
fork_branch: | ||
description: The forked repository's branch. | ||
required: true | ||
upstream_repo: | ||
description: The upstream repository to pull changes from. | ||
required: true | ||
upstream_branch: | ||
description: The upstream repository's branch. | ||
required: true | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/create-github-app-token@v1 | ||
id: token | ||
with: | ||
app-id: ${{ secrets.FORK_SYNCER_APP_ID }} | ||
private-key: ${{ secrets.FORK_SYNCER_PRIVATE_KEY }} | ||
owner: ${{ github.repository_owner }} | ||
repositories: ${{ inputs.fork_repo }} | ||
- uses: thebrowsercompany/gha-sync-fork@main | ||
with: | ||
dry_run: true | ||
fork_repo: thebrowsercompany/${{ inputs.fork_repo }} | ||
fork_branch: ${{ inputs.fork_branch }} | ||
upstream_repo: ${{ inputs.upstream_repo }} | ||
upstream_branch: ${{ inputs.upstream_branch }} | ||
token: ${{ steps.token.outputs.token }} | ||
|