diff options
| author | 2026-02-24 17:29:03 +0800 | |
|---|---|---|
| committer | 2026-02-24 17:29:03 +0800 | |
| commit | 7367833fc41da802cd2bb99c86bbc9898ad4d211 (patch) | |
| tree | f559847a5d4e5cb2dd3e6ab3ebb3fe8cc01be6f1 | |
| parent | 7b1ee70c4bffc0b47ff244215c86cbbff0de387c (diff) | |
| download | soon-7367833fc41da802cd2bb99c86bbc9898ad4d211.tar.gz soon-7367833fc41da802cd2bb99c86bbc9898ad4d211.zip | |
Add debugging and user configuration steps to workflow
| -rw-r--r-- | .github/workflows/publish-aur.yml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index e6fd1e0..ba8f902 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -33,6 +33,16 @@ with: fetch-depth: 0 + - name: Debug workspace + run: | + echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE" + ls -al $GITHUB_WORKSPACE + + - name: Set git user + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + - name: Prepare PKGBUILD and .SRCINFO run: | cd $GITHUB_WORKSPACE @@ -45,17 +55,15 @@ sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD makepkg --printsrcinfo > .SRCINFO - - name: Set git user - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - - name: Push to AUR run: | + cd $GITHUB_WORKSPACE rm -rf pkg src GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts" git clone ssh://aur@aur.archlinux.org/soon.git aur-push - cp PKGBUILD .SRCINFO aur-push/ 2>/dev/null || true + cp PKGBUILD .SRCINFO README* LICENSE* aur-push/ 2>/dev/null || true cd aur-push - git add PKGBUILD .SRCINFO 2>/dev/null || true + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add PKGBUILD .SRCINFO README* LICENSE* 2>/dev/null || true git commit -m "release: $VERSION" || echo "Nothing to commit" git push |