diff --git a/.forgejo/workflows/update-dependencies.yml b/.forgejo/workflows/update-dependencies.yml index 71b5f29..c9ff129 100644 --- a/.forgejo/workflows/update-dependencies.yml +++ b/.forgejo/workflows/update-dependencies.yml @@ -9,11 +9,21 @@ jobs: runs-on: nixos-latest steps: - uses: actions/checkout@v4 - - id: update - uses: https://github.com/DeterminateSystems/update-flake-lock@main + - run: nix flake update --commit-lock-file - # - name: Merge - # run: gh pr merge --auto "${{ steps.update.outputs.pull-request-number }}" --rebase - # env: - # GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - # if: ${{ steps.update.outputs.pull-request-number != '' }}s \ No newline at end of file + - name: Create Pull Request + uses: https://github.com/maxking/forgejo-create-pr@main + with: + # required + token: ${{ secrets.GH_TOKEN }} + # optional + base: 'main' + add-paths: '.' + commit-message: 'feat: automated changes' + pr-title: 'feat: new automated changes' + pr-body: 'This PR contains automated changes' + pr-condition-cmd: 'git status --porcelain' + + + +#https://forrestjacobs.com/keeping-nixos-systems-up-to-date-with-github-actions/ \ No newline at end of file