Re-enable workspace hack after a release (#364) #56
This file contains 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: CI freshness | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci-freshness: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rust-lang/[email protected] | |
with: | |
cache-workspaces: "./libs -> ./target" | |
- name: Generate docs.yml | |
run: | | |
cd ci_utils | |
cargo run > docs.yml | |
mv docs.yml ../.github/workflows | |
- name: Fail if anything changed | |
run: | | |
git add . | |
git diff --quiet --exit-code --cached || (echo "Please regenerate the docs.yml CI script" && exit 1) |