forked from gorhill/uBlock
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
run: echo "No changes needed to be synchronised" | ||
sync: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
needs: check-for-changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -41,14 +41,20 @@ jobs: | |
git checkout -b mirror | ||
git remote add github "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" | ||
git push -u github mirror | ||
create-pr: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
needs: sync | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create PR | ||
run: | | ||
gh pr create --title "Fork Sync: Update from parent repository" --body "This PR was automatically created by a GitHub Action triggered by a cron schedule. Please review the changes and merge if appropriate." --base master --head mirror --repo ${GITHUB_REPOSITORY} | ||
gh pr create --title "Fork Sync: Update from parent repository" --body "This PR was automatically created by a GitHub Action triggered by a cron schedule. Please review the changes and merge if appropriate." --base master --head mirror --repo ${GITHUB_REPOSITORY} || true | ||
update-pr-desc: | ||
needs: sync | ||
needs: create-pr | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
UPSTREAM_URL: "https://github.com/gorhill/ublock.git" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|