Skip to content

feat: enable more pocketic features #7970

feat: enable more pocketic features

feat: enable more pocketic features #7970

name: Check that nix/sources.json and scripts/dfx-asset-sources.sh are consistent
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# When getting Rust dependencies, retry on network error:
CARGO_NET_RETRY: 10
# Use the local .curlrc
CURL_HOME: .
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-21.05-small
- name: Install dependencies
run: sudo apt-get install --yes jq
- name: Check
run: |
./scripts/write-dfx-asset-sources.sh
if [ -z "$(git status --porcelain)" ]
then
exit 0
else
git diff
echo "scripts/dfx-asset-sources.sh is out of date. Please run:"
echo " scripts/write-dfx-asset-sources.sh"
exit 1
fi