mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/LocalizationData.git
synced 2025-06-29 05:35:39 +08:00
Compare commits
5 Commits
4.2.0(PU)_
...
hk
Author | SHA1 | Date | |
---|---|---|---|
a237ea3c22 | |||
95088c95dd | |||
01b5c218c6 | |||
6ce8e62402 | |||
9d6fea34a7 |
37
.github/workflows/pr_check.yml
vendored
Normal file
37
.github/workflows/pr_check.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: PR Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
rust-pr-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Rust
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Rust Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
cache-all-crates: true
|
||||||
|
prefix-key: "rs_cache"
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
shared-key: "share"
|
||||||
|
|
||||||
|
- name: Setup localization runner tools
|
||||||
|
run: cargo install --git https://github.com/StarCitizenToolBox/runner_tools.git --tag v1.0.1 localization
|
||||||
|
|
||||||
|
- name: PR Check
|
||||||
|
env:
|
||||||
|
GH_REPO: ${{ github.repository }}
|
||||||
|
GH_PR_NUMBER: ${{ github.event.pull_request.id }}
|
||||||
|
GH_PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
|
run: localization -m pr_check
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user