pr_to_main #40
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
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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.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" |