Skip to content

pr_to_main

pr_to_main #17

Workflow file for this run

name: pr_to_main
on:
schedule:
- cron: "30 8 * * 0" # early morning (08:30 UTC) every Sunday
workflow_dispatch:
permissions:
pull-requests: write
jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: git checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: create pull request with reposync action
id: open-pr
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5 #v2.12.1
with:
destination_branch: main
pr_title: "chore: automated PR to main ${{ steps.date.outputs.date }}"
pr_body: "Automated Pull Request to main branch"