Merge pull request #1301 from rainlanguage/02/14/25-disclaime-modal #3126
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: Git is clean | |
on: [push] | |
concurrency: | |
group: ${{ github.ref }}-git-clean | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
git-clean: | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
determinate: true | |
- uses: DeterminateSystems/flakehub-cache-action@main | |
# Build metas etc. required to do a correct pointer build. | |
- run: ./pointers.sh | |
# Format the repo after generating pointers so that the pointer files are | |
# formatted too. | |
- run: nix develop -c forge fmt | |
# Check if the repo is clean after generating pointers and formatting. | |
- run: git diff --exit-code |