Auto Update #42
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: Auto Update | |
permissions: {} | |
on: | |
schedule: | |
- cron: "0 2 * * *" # Run daily at 2 AM UTC | |
workflow_dispatch: | |
jobs: | |
update: | |
name: Auto Update | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | |
- uses: oxc-project/setup-rust@f78b3964e121f889426634f0eaeeb09fccecac08 # v1.0.6 | |
- name: Run xtask to update globals | |
run: cargo run -p xtask | |
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
id: cpr | |
with: | |
token: ${{ secrets.OXC_BOT_PAT }} | |
commit-message: Auto update globals from upstream | |
branch: update | |
branch-suffix: timestamp | |
title: Auto update globals from upstream | |
assignees: Boshen | |
base: main | |
- uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3 | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
with: | |
token: ${{ secrets.OXC_BOT_PAT }} | |
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | |
merge-method: squash |