Skip to content

Create automatic pr #691

Create automatic pr

Create automatic pr #691

Workflow file for this run

name: Create automatic pr
# Set your repository name and the branch you want to pull from
env:
REPO_NAME: "greg7mdp/parallel-hashmap"
BRANCH: "master"
UPSTREAM_BRANCH: "master"
NAME: "parallel-hashmap"
on:
push:
branches: [ master ]
schedule:
- cron: "0 0 * * *"
- cron: "0 6 * * *"
- cron: "0 12 * * *"
- cron: "0 18 * * *"
jobs:
Update-Fork:
runs-on: ubuntu-latest
steps:
- name: checking out code
uses: actions/checkout@v3
with:
ref: master
token: ${{ secrets.GITHUB_TOKEN }}
lfs: true
submodules: true
clean: false
fetch-depth: 0
- name: extract git commit data
uses: rlespinasse/[email protected]
- name: Check for synced branches action
id: check
uses: MadLadSquad/check-for-synced-branches-action@master
with:
upstream-url: "https://github.com/${{ env.REPO_NAME }}"
first-branch: ${{ env.BRANCH }}
second-branch: ${{ env.UPSTREAM_BRANCH }}
- name: Test
run: "echo '${{ steps.check.outputs.behind }} / ${{ steps.check.outputs.ahead }}'"
- name: Issue
if: steps.check.outputs.behind != 0
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTION_ISSUE_SECRET }}
with:
filename: .github/auto-issue-template.md
update_existing: true
search_existing: open