aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2025-09-15 12:19:41 +0200
committerEgor Tensin <egor@tensin.name>2025-09-15 12:19:41 +0200
commit33b88588bbddee278aeff265a2816b21abe28f15 (patch)
treef8de7ecb3a96a4f7598aab6e4927a7ea03e10890 /.github/workflows
parentworkflows/yandex-cloud-cli-bin: configure git (diff)
downloadmaintenance-33b88588bbddee278aeff265a2816b21abe28f15.tar.gz
maintenance-33b88588bbddee278aeff265a2816b21abe28f15.zip
workflows/yandex-cloud-cli-bin: configure git attempt #2
Diffstat (limited to '')
-rw-r--r--.github/workflows/yandex-cloud-cli-bin.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/yandex-cloud-cli-bin.yml b/.github/workflows/yandex-cloud-cli-bin.yml
index 5c00c3e..bae680b 100644
--- a/.github/workflows/yandex-cloud-cli-bin.yml
+++ b/.github/workflows/yandex-cloud-cli-bin.yml
@@ -23,14 +23,16 @@ jobs:
${{ secrets.SSH_KEY }}
EOF
chmod 0600 /root/.ssh/id_ed25519
- - name: Configure git
- run: |
- git config --global user.name 'Egor Tensin'
- git config --global user.email 'egor@tensin.name'
- name: Checkout
run: |
git clone -q ssh://aur@aur.archlinux.org/yandex-cloud-cli-bin.git
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"