fork/eza

git clone https://git.julia.blue/fork/eza

Christina Sørensenci(deps): automate dependency updatescf8669eb

main
1.5 KiB44 linesraw
1# SPDX-FileCopyrightText: 2025 Christina Sørensen
2#
3# SPDX-License-Identifier: EUPL-1.2
4name: "Automated Dependency Bump"
5on:
6  workflow_dispatch:
7  schedule:
8    - cron: '0 0 * * 4'
9jobs:
10  update-and-create-pr:
11    runs-on: ubuntu-latest
12    concurrency:
13      group: ${{ github.workflow }}-${{ github.ref }}
14      cancel-in-progress: true
15    steps:
16      - name: "Checkout repository"
17        uses: actions/checkout@v4
18        with:
19          fetch-depth: 0
20      - name: "Install Nix"
21        uses: cachix/install-nix-action@v22
22        with:
23          nix_path: nixpkgs=channel:nixos-unstable
24      - name: "Set up Git credentials"
25        run: |
26          git config user.name "github-actions[bot]"
27          git config user.email "github-actions[bot]@users.noreply.github.com"
28      - name: "Run update script"
29        id: run_script
30        run: |
31          chmod +x .github/workflows/update-dependencies.sh
32          .github/workflows/update-dependencies.sh
33
34          BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
35          echo "branch=${BRANCH_NAME}" >> $GITHUB_OUTPUT
36      - name: "Create Pull Request"
37        env:
38          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39        run: |
40          gh pr create \
41            --title "build(deps): Automatic dependency updates for $(date --iso-8601)" \
42            --body "This PR was automatically generated by a GitHub Action to update crate and flake dependencies. Please review the changes and merge." \
43            --base main \
44            --head ${{ steps.run_script.outputs.branch }}