Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(actions): trying to create auto upgrade PR for swc_* #9

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions bump-swc_core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bump up swc_core
on:
schedule:
# two times daily, at 12:00 and 06:00
- cron: '0 0 * * *'
- cron: '0 6 * * *'

jobs:
upgrade-swc-core:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true

- uses: Swatinem/rust-cache@v2
with:
shared-key: "gha-cargo-upgrade"
cache-on-failure: true

- name: Run cargo upgrade
uses: kwonoj/gha-cargo-upgrade@latest
with:
token: ${{ secrets.GHA_UPGRADE_TOKEN }}
packages: "swc_core"
incompatible: true