PR Factory #10699
This file contains hidden or 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 Factory | |
on: | |
workflow_dispatch: {} | |
# Comment the following cron schedule to stop running this workflow every 30 minutes | |
schedule: | |
- cron: 0/30 * * * * | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
create-pr: | |
# needs: merge-pr | |
runs-on: ubicloud-standard-2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: trunk install | |
uses: trunk-io/trunk-action/install@v1 | |
with: | |
tools: gh | |
- uses: robinraju/[email protected] | |
with: | |
repository: trunk-io/mergequeue-tool | |
latest: true | |
tarBall: true | |
preRelease: false | |
extract: true | |
- name: run mq | |
id: edits | |
run: ./mq generate | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: run mq | |
if: always() | |
id: clean | |
run: ./mq housekeeping | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |