From db9e78558089748ac7140035fe7b4c0c2339366f Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Tue, 30 Apr 2024 00:20:13 +0530 Subject: [PATCH] ci(example): share-services folder isn't a flake root It is the root for two other subflakes -- northwind and pgweb + ci(example): add share-services/pgweb update-flake-lock cron --- .../update-flake-lock-ex-share-northwind.yaml | 23 +++++++++++++++++++ ... => update-flake-lock-ex-share-pgweb.yaml} | 10 ++++---- 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/update-flake-lock-ex-share-northwind.yaml rename .github/workflows/{update-flake-lock-ex-share-services.yaml => update-flake-lock-ex-share-pgweb.yaml} (61%) diff --git a/.github/workflows/update-flake-lock-ex-share-northwind.yaml b/.github/workflows/update-flake-lock-ex-share-northwind.yaml new file mode 100644 index 0000000..b4124de --- /dev/null +++ b/.github/workflows/update-flake-lock-ex-share-northwind.yaml @@ -0,0 +1,23 @@ +name: update-flake-lock-ex-share-northwind +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/northwind/flake.lock" + pr-title: "Update example/share-services/northwind/flake.lock" + pr-labels: | + automated + path-to-flake-dir: 'example/share-services/northwind' + branch: "update_flake_lock_ex_share_northwind" diff --git a/.github/workflows/update-flake-lock-ex-share-services.yaml b/.github/workflows/update-flake-lock-ex-share-pgweb.yaml similarity index 61% rename from .github/workflows/update-flake-lock-ex-share-services.yaml rename to .github/workflows/update-flake-lock-ex-share-pgweb.yaml index 3ab90e5..32dec2a 100644 --- a/.github/workflows/update-flake-lock-ex-share-services.yaml +++ b/.github/workflows/update-flake-lock-ex-share-pgweb.yaml @@ -1,4 +1,4 @@ -name: update-flake-lock-ex-share-services +name: update-flake-lock-ex-share-pgweb on: workflow_dispatch: # allows manual triggering schedule: @@ -15,9 +15,9 @@ jobs: - 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" + commit-msg: "chore(example): Update share-services/pgweb/flake.lock" + pr-title: "Update example/share-services/pgweb/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 + path-to-flake-dir: 'example/share-services/pgweb' + branch: "update_flake_lock_ex_share_pgweb"