diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index ea9a006..bdcb519 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -4,15 +4,23 @@ jobs: runs-on: nix steps: - uses: actions/checkout@v4 - - run: git switch -c flake-bump-inputs - - run: | + name: Checkout repository + - name: Create new branch from the checked out one + run: git switch -c flake-bump-inputs + - name: Configure git as `Seven of Nix` + run: | git config --global user.email "sevenofnine+andrea.ciceri@autistici.org" git config --global user.name "Seven of Nine" - - run: nix flake update --commit-lock-file - - run: git push origin --force flake-bump-inputs - - run: tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev - - run: tea logins default git.aciceri.dev - - run: | + - name: Update flake's lockfile and create commit + run: nix flake update --commit-lock-file + - name: Push commit to the `flake-bump-inputs` remote branch + run: git push origin --force flake-bump-inputs + - name: Login as `Seven of Nix` + run: | + tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev + tea logins default git.aciceri.dev + - name: Create the pull request + run: | tea pulls create \ --repo "$GITHUB_REPOSITORY" \ --title "Update flake's lockfile" \