diff options
author | Egor Tensin <egor@tensin.name> | 2025-09-15 12:37:25 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2025-09-15 12:37:25 +0200 |
commit | 490e2954df15b363d97f1a8ed0534f411813389c (patch) | |
tree | eb5fd06f863e2d4423a4e850097b4638a2fcde44 | |
parent | workflows/yandex-cloud-cli-bin: configure git attempt #2 (diff) | |
download | maintenance-490e2954df15b363d97f1a8ed0534f411813389c.tar.gz maintenance-490e2954df15b363d97f1a8ed0534f411813389c.zip |
workflows/yandex-cloud-cli-bin: move all the crazy comments to the top
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/yandex-cloud-cli-bin.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/yandex-cloud-cli-bin.yml b/.github/workflows/yandex-cloud-cli-bin.yml index bae680b..0158bba 100644 --- a/.github/workflows/yandex-cloud-cli-bin.yml +++ b/.github/workflows/yandex-cloud-cli-bin.yml @@ -4,6 +4,16 @@ on: workflow_call: workflow_dispatch: +# For good reasons, GitHub Actions people made the decision to add the +# container: functionality. For some other reason, when running inside a +# container:, they made an insane, completely batshit crazy decision to set +# $HOME to something other than /root. This breaks a bunch of things, which is +# why all the insanity is there below. +# +# makepkg people are similarly insane, which is why they hard-forbid running +# makepkg as root, because they're crazy. This is cause for the other stupid +# workarounds below. + jobs: maintenance: runs-on: ubuntu-latest @@ -29,13 +39,9 @@ jobs: chmod -R o+w yandex-cloud-cli-bin - name: Configure git run: | - # Stupid GitHub Actions sets $HOME to something else other than /root - # when using container:, which breaks everything. git -C yandex-cloud-cli-bin config --local user.name 'Egor Tensin' git -C yandex-cloud-cli-bin config --local user.email 'egor@tensin.name' - name: Run maintenance run: | git config --system --add safe.directory "$( pwd )/yandex-cloud-cli-bin" - # Stupid makepkg hard forbids running as root, which is stupid, which - # is why I'm doing all of that stupidity here and above. runuser -u nobody -- make -C yandex-cloud-cli-bin maintenance |