Skip to content

Commit

Permalink
last change
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Dec 8, 2023
1 parent 42464d3 commit 55caa96
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/sync-from-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 55caa96

Please sign in to comment.