From 4a48d4a7b9a6144a48239bf62a278ca922df98e1 Mon Sep 17 00:00:00 2001 From: Shivaraj B H Date: Mon, 22 Apr 2024 15:59:11 +0530 Subject: [PATCH] ci: add `update-flake-lock` cron jobs for `example-{simple, share-services}` and `test` (#168) resolves #167 --- .../update-flake-lock-ex-share-services.yaml | 23 +++++++++++++++++++ .../update-flake-lock-ex-simple.yaml | 23 +++++++++++++++++++ .github/workflows/update-flake-lock-test.yaml | 23 +++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .github/workflows/update-flake-lock-ex-share-services.yaml create mode 100644 .github/workflows/update-flake-lock-ex-simple.yaml create mode 100644 .github/workflows/update-flake-lock-test.yaml diff --git a/.github/workflows/update-flake-lock-ex-share-services.yaml b/.github/workflows/update-flake-lock-ex-share-services.yaml new file mode 100644 index 00000000..3ab90e59 --- /dev/null +++ b/.github/workflows/update-flake-lock-ex-share-services.yaml @@ -0,0 +1,23 @@ +name: update-flake-lock-ex-share-services +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + example-lock: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@main + with: + commit-msg: "chore(example): Update share-services/flake.lock" + pr-title: "Update example/share-services/flake.lock" + pr-labels: | + automated + path-to-flake-dir: 'example/share-services' + branch: "update_flake_lock_ex_share_services" \ No newline at end of file diff --git a/.github/workflows/update-flake-lock-ex-simple.yaml b/.github/workflows/update-flake-lock-ex-simple.yaml new file mode 100644 index 00000000..c3fa047e --- /dev/null +++ b/.github/workflows/update-flake-lock-ex-simple.yaml @@ -0,0 +1,23 @@ +name: update-flake-lock-ex-simple +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + example-lock: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@main + with: + commit-msg: "chore(example): Update simple/flake.lock" + pr-title: "Update example/simple/flake.lock" + pr-labels: | + automated + path-to-flake-dir: 'example/simple' + branch: "update_flake_lock_ex_simple" \ No newline at end of file diff --git a/.github/workflows/update-flake-lock-test.yaml b/.github/workflows/update-flake-lock-test.yaml new file mode 100644 index 00000000..5cbb2f80 --- /dev/null +++ b/.github/workflows/update-flake-lock-test.yaml @@ -0,0 +1,23 @@ +name: update-flake-lock-test +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 + +jobs: + example-lock: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@main + with: + commit-msg: "chore(test): Update flake.lock" + pr-title: "Update test/flake.lock" + pr-labels: | + automated + path-to-flake-dir: 'test' + branch: "update_flake_lock_test" \ No newline at end of file