update changes

This commit is contained in:
zoey 2025-05-29 10:58:28 -04:00
parent 8498f7d121
commit 10e9ffb925
Signed by: zoey
GPG key ID: 81FB9FECDD6A33E2

View file

@ -26,19 +26,19 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Nix - name: Install Nix
uses: cachix/install-nix-action@v24 uses: DeterminateSystems/nix-installer-action@main
with: with:
nix_path: nixpkgs=channel:nixos-unstable github-token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: | extra-conf: |
experimental-features = nix-command flakes experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Check for existing PR - name: Check for existing PR
id: check-pr id: check-pr
run: | run: |
# Get repository information from GitHub context # Get repository information
REPO_OWNER=$(echo ${{ github.repository }} | cut -d '/' -f 1) REPO_OWNER=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 1)
REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2) REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 2)
# Query Forgejo API for existing PRs # Query Forgejo API for existing PRs
PR_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ PR_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
@ -94,8 +94,8 @@ jobs:
if: steps.flake-update.outputs.changes_made == 'true' if: steps.flake-update.outputs.changes_made == 'true'
run: | run: |
# Get repository information # Get repository information
REPO_OWNER=$(echo ${{ github.repository }} | cut -d '/' -f 1) REPO_OWNER=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 1)
REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2) REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 2)
if [[ "${{ steps.check-pr.outputs.pr_exists }}" == "true" ]]; then if [[ "${{ steps.check-pr.outputs.pr_exists }}" == "true" ]]; then
echo "Updating existing PR #${{ steps.check-pr.outputs.pr_number }}" echo "Updating existing PR #${{ steps.check-pr.outputs.pr_number }}"
@ -230,8 +230,8 @@ jobs:
fi fi
# Get repository information # Get repository information
REPO_OWNER=$(echo ${{ github.repository }} | cut -d '/' -f 1) REPO_OWNER=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 1)
REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2) REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d '/' -f 2)
# Mark PR as ready for review (not draft) # Mark PR as ready for review (not draft)
curl -s -X PATCH \ curl -s -X PATCH \