mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
build: do not update IANA assignments if there is no visible change
This commit is contained in:
18
.github/workflows/update-nix-flake-lock.yml
vendored
18
.github/workflows/update-nix-flake-lock.yml
vendored
@@ -21,8 +21,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
|
- name: Check current IANA assignments
|
||||||
|
if: matrix.source == 'iana-assignments'
|
||||||
|
run: |
|
||||||
|
nix build .\#ianaServiceNames
|
||||||
|
make orchestrator/clickhouse/data/tcp.csv orchestrator/clickhouse/data/udp.csv SERVICES_URL=result
|
||||||
|
mkdir before~
|
||||||
|
mv orchestrator/clickhouse/data/tcp.csv orchestrator/clickhouse/data/udp.csv before~
|
||||||
- name: Update Nix lockfile
|
- name: Update Nix lockfile
|
||||||
run: nix flake update ${{ matrix.source }}
|
run: nix flake update ${{ matrix.source }}
|
||||||
|
- name: Check new IANA assignments
|
||||||
|
if: matrix.source == 'iana-assignments'
|
||||||
|
run: |
|
||||||
|
nix build .\#ianaServiceNames
|
||||||
|
make orchestrator/clickhouse/data/tcp.csv orchestrator/clickhouse/data/udp.csv SERVICES_URL=result
|
||||||
|
mkdir after~
|
||||||
|
mv orchestrator/clickhouse/data/tcp.csv orchestrator/clickhouse/data/udp.csv after~
|
||||||
|
! diff -u before~ after~ || {
|
||||||
|
echo No diff...
|
||||||
|
git reset --hard
|
||||||
|
}
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
uses: peter-evans/create-pull-request@v7
|
uses: peter-evans/create-pull-request@v7
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
inherit backend frontend;
|
inherit backend frontend ianaServiceNames;
|
||||||
default = backend;
|
default = backend;
|
||||||
} // (l.optionalAttrs (system == "x86_64-linux")
|
} // (l.optionalAttrs (system == "x86_64-linux")
|
||||||
(l.attrsets.listToAttrs (l.lists.map
|
(l.attrsets.listToAttrs (l.lists.map
|
||||||
|
|||||||
Reference in New Issue
Block a user