forked from pub-solar/infra
Merge pull request 'feat: enable gitea actions in forgejo' (#40) from feat/gitea-actions into main
Reviewed-on: pub-solar/infra#40 Reviewed-by: b12f <b12f@noreply.git.pub.solar>
This commit is contained in:
commit
a63e0e2154
16
.forgejo/workflows/check.yml
Normal file
16
.forgejo/workflows/check.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: Flake checks
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Check:
|
||||
runs-on: nix-flakes
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Prepare cachix
|
||||
uses: https://github.com/cachix/cachix-action@v12
|
||||
with:
|
||||
name: pub-solar
|
||||
- name: Run flake checks
|
||||
run: |
|
||||
nix --print-build-logs --verbose --accept-flake-config flake check
|
|
@ -78,6 +78,11 @@
|
|||
session = {
|
||||
COOKIE_SECURE = lib.mkForce true;
|
||||
};
|
||||
# See https://forgejo.org/docs/latest/admin/actions/
|
||||
actions.ENABLED = true;
|
||||
# In an actions workflow, when uses: does not specify an absolute URL,
|
||||
# the value of DEFAULT_ACTIONS_URL is prepended to it.
|
||||
actions.DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue