Skip to content

Commit

Permalink
fix: enable automated pr to main (ratify-project#1582)
Browse files Browse the repository at this point in the history
Signed-off-by: Susan Shi <[email protected]>
  • Loading branch information
susanshi authored and binbin-li committed Sep 14, 2024
1 parent 88a3422 commit 04e5cf3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/pr-to-main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: pr_to_main

on:
push:
branches:
- 'dev'
schedule:
- cron: '30 8 * * 0' # early morning (08:30 UTC) every Sunday
workflow_dispatch:

permissions:
pull-requests: write

jobs:
main:
name: Create PR Release to Main
pull-request:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand All @@ -20,13 +19,13 @@ jobs:

- name: git checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

# https://github.com/marketplace/actions/github-pull-request-action
- 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:
github_token: ${{ secrets.PR_TOKEN }}
destination_branch: main
pr_title: ${{ github.event.commits[0].message }}
pr_body: "Automated Pull Request"
pr_title: "chore: automated PR to main ${{ steps.date.outputs.date }}"
pr_body: "Automated Pull Request to main branch"

0 comments on commit 04e5cf3

Please sign in to comment.