mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-31 20:44:07 +00:00
a56c000f60
To maximize the caching efficiency, all build jobs are executed as forgejo user. Hash is explicitly specified to avoid breaking changes.
12 lines
370 B
YAML
12 lines
370 B
YAML
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: setup user and permissions
|
|
run: |
|
|
git config --add safe.directory '*'
|
|
adduser --quiet --comment forgejo --disabled-password forgejo
|
|
chown -R forgejo:forgejo .
|
|
- uses: https://codeberg.org/fnetx/setup-cache-go@b2214eaf6fb44c7e8512c0f462a2c3ec31f86a73
|
|
with:
|
|
username: forgejo
|