This repository has been archived on 2024-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/.forgejo/workflows/build.yaml
Andrea Ciceri f28064a290
All checks were successful
/ test (push) Successful in 28s
Various fixes
2024-03-09 19:03:18 +01:00

30 lines
1.2 KiB
YAML

on: [push]
jobs:
test:
runs-on: nix
steps:
- uses: actions/checkout@v4
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"
- 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" \
--description "Check the commit description for inputs deltas" \
--assignees aciceri \
|| echo "PR already existing"
# - run: nix-fast-build --no-nom