From cb307b326208ec72935a7f120ec65683e4554d60 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Thu, 16 Nov 2023 22:13:59 +0100 Subject: [PATCH] github: remove flake-update action This is not useful. This should be replaced by an action coupled to Hydra. --- .github/workflows/flake-update.yml | 47 ------------------------------ 1 file changed, 47 deletions(-) delete mode 100644 .github/workflows/flake-update.yml diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml deleted file mode 100644 index a99de3f1..00000000 --- a/.github/workflows/flake-update.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: update flake.lock -permissions: - contents: write - pull-requests: write - -on: - schedule: - # Run every 1st of the month at 12:00 - - cron: '* 12 1 * *' - # Allow manual triggering of action - workflow_dispatch: - -jobs: - update-flake-lock: - name: update flake.lock - runs-on: ubuntu-latest - env: - CI_COMMIT_AUTHOR: Continuous Integration - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CI_PR_BRANCH: flake-lock-update - steps: - # Install Nix on the runner - - name: Install Nix - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:nixos-unstable - # Checkout of the current master in the working dir - - name: Check out repository - uses: actions/checkout@v3 - with: - ref: master - # Update the flake and commit result from master - - name: Update flake - run: | - nix --experimental-features 'nix-command flakes' flake update - git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" - git config --global user.email "nix-qchem@users.noreply.github.com" - git checkout -b ${{ env.CI_PR_BRANCH }} - git commit -m "update flake.lock" flake.lock - # Push, create new branch, and create PR - # Note: note that action fails if branch already exists and push fails - - name: Open Pull request - run: | - git push origin ${{ env.CI_PR_BRANCH }}:${{ env.CI_PR_BRANCH }} - gh pr create -B master -H ${{ env.CI_PR_BRANCH }} --title 'Update flake.lock' --body 'Created by Github action' - -