[CI] Temporarily disable update-flake-lock job

This commit is contained in:
Andrea Ciceri 2024-03-26 14:04:56 +01:00
parent a16c6bd6cc
commit 3c9a69063f
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 45 additions and 45 deletions

View file

@ -1,11 +1,11 @@
on: # on:
push: # push:
branches: ["*"] # branches: ["*"]
jobs: # jobs:
test: # test:
runs-on: nix # runs-on: nix
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
name: Checkout repository # name: Checkout repository
- name: Build with nix # - name: Build with nix
run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux" # run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux"

View file

@ -1,35 +1,35 @@
name: update-flake-lock # name: update-flake-lock
on: # on:
schedule: # schedule:
- cron: '0 15 * * *' # daily at 15:00 # - cron: '0 15 * * *' # daily at 15:00
jobs: # jobs:
lockfile: # lockfile:
runs-on: nix # runs-on: nix
steps: # steps:
- uses: actions/checkout@v4 # - uses: actions/checkout@v4
name: Checkout repository # name: Checkout repository
with: # with:
token: ${{secrets.SEVENOFNINE_TOKEN}} # token: ${{secrets.SEVENOFNINE_TOKEN}}
- name: Create new branch from the checked out one # - name: Create new branch from the checked out one
run: git switch -c update-flake-lock # run: git switch -c update-flake-lock
- name: Configure git as `Seven of Nix` # - name: Configure git as `Seven of Nix`
run: | # run: |
git config --global user.email "sevenofnine@stronzi.org" # git config --global user.email "sevenofnine@stronzi.org"
git config --global user.name "Seven of Nine" # git config --global user.name "Seven of Nine"
- name: Update flake's lockfile and create commit # - name: Update flake's lockfile and create commit
run: nix flake update --commit-lock-file # run: nix flake update --commit-lock-file
- name: Push commit to the `update-flake-lock` remote branch # - name: Push commit to the `update-flake-lock` remote branch
run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository # run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository
- name: Login as `Seven of Nix` # - name: Login as `Seven of Nix`
run: | # run: |
tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev # tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev
tea logins default git.aciceri.dev # tea logins default git.aciceri.dev
- name: Create the pull request # - name: Create the pull request
run: | # run: |
tea pulls create \ # tea pulls create \
--repo "$GITHUB_REPOSITORY" \ # --repo "$GITHUB_REPOSITORY" \
--title "Update flake's lockfile" \ # --title "Update flake's lockfile" \
--description "Check the commit description for inputs deltas" \ # --description "Check the commit description for inputs deltas" \
--assignees aciceri \ # --assignees aciceri \
|| echo "PR already existing" # || echo "PR already existing"