www-from-model/.forgejo/actions/prep-metadata-query/action.yml
Michael Hanke 9d7474143b
All checks were successful
Deploy on webserver / Build site and deploy on success (push) Successful in 36s
rf: move common prep steps into a composite action
2026-02-23 10:54:47 +01:00

25 lines
958 B
YAML

runs:
using: "composite"
steps:
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install tools
run: |
# use a single environment for all tools
uv tool install https://hub.psychoinformatics.de/datalink/query-rse-group.git \
--with-executables-from dump-things-pyclient \
--with-executables-from git-annex
# we need git-annex even when we are not working with annex keys
# the repository is annex-init'ed on-clone, so git-annex tooling
# runs in commit hooks
- name: Prepare Git
run: |
git config --global user.name "Forgejo Actions"
git config --global user.email ${{ forgejo.actor }}@${FORGEJO_SERVER_URL#*://}
git config --global credential.helper cache
git credential approve <<EOF
url=${{ forgejo.server_url }}
username=${{ forgejo.actor }}
password=${{ forgejo.token }}
EOF
echo OK