Skip to content

chore: only run workflow on push #13

chore: only run workflow on push

chore: only run workflow on push #13

name: CI topology updater
on:
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb
with:
persist-credentials: false
ref: ${{ github.head_ref }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa
- name: Setup Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@13dabe8ccc07ba82ad7ccfa52035616223194012
- name: Build Topology
run: nix build .#topology.x86_64-linux.config.output --extra-experimental-features pipe-operators
- name: Move Topology
run: sudo cp -r result/* assets/topology/
- name: Commit and Push changed Files
uses: stefanzweifel/git-auto-commit-action@0b492c0d951b87f3cd12523a542dbd156c1dbc80
with:
commit_message: Topology Update