rename github workflows to gitea
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user