rename github workflows to gitea

This commit is contained in:
Danilo Reyes
2025-11-09 10:28:42 -06:00
parent 5cf2369dd0
commit 35008216bd
3 changed files with 12 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ jobs:
in in
builtins.concatStringsSep " " utils.availableSchemes builtins.concatStringsSep " " utils.availableSchemes
') ')
echo "schemes=$SCHEMES" >> $GITHUB_OUTPUT echo "schemes=$SCHEMES" >> $GITEA_OUTPUT
echo "Available schemes: $SCHEMES" echo "Available schemes: $SCHEMES"
- name: Configure Attic cache - name: Configure Attic cache

View File

@@ -12,7 +12,7 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
- name: Configure Git for automated commits - name: Configure Git for automated commits
run: | run: |
@@ -27,10 +27,10 @@ jobs:
id: check_changes id: check_changes
run: | run: |
if git diff --quiet flake.lock; then if git diff --quiet flake.lock; then
echo "changes=false" >> $GITHUB_OUTPUT echo "changes=false" >> $GITEA_OUTPUT
echo "No changes in flake.lock" echo "No changes in flake.lock"
else else
echo "changes=true" >> $GITHUB_OUTPUT echo "changes=true" >> $GITEA_OUTPUT
echo "Changes detected in flake.lock" echo "Changes detected in flake.lock"
fi fi

View File

@@ -19,8 +19,14 @@ in
]; ];
}; };
nix.settings = { nix.settings = {
allowed-users = [ "gitea" "gitea-runner" ]; allowed-users = [
trusted-users = [ "gitea" "gitea-runner" ]; "gitea"
"gitea-runner"
];
trusted-users = [
"gitea"
"gitea-runner"
];
}; };
services.gitea-actions-runner.instances.nixos = { services.gitea-actions-runner.instances.nixos = {
inherit (cfg) url enable; inherit (cfg) url enable;