on: [push]
jobs:
  test:
    runs-on: nix
    steps:
      - uses: actions/checkout@v4
      - run: git switch -c flake-bump-inputs
      - run: |
          git config --global user.email "andrea.ciceri@autistici.org"
          git config --global user.name "Andrea Ciceri"
      - run: nix flake update --commit-lock-file
      - run: git push origin --force flake-bump-inputs
      - run: tea logins add --token ${{secrets.ACICERI_TOKEN}} --url https://git.aciceri.dev
      - run: tea logins default git.aciceri.dev
      - run: |
          tea pulls create \
            --repo "aciceri/emacs" \
            --title "test" \
            --description "ciao" \
            --labels automated,flake-bump-inputs \
            --assignees aciceri
      # - run: nix-fast-build --no-nom