pr_to_main #27
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: git checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- 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" |