Skip to content

Commit

Permalink
Set home directory path from the step
Browse files Browse the repository at this point in the history
The home directory path is not `/home/runner` on the macOS runner.
  • Loading branch information
unflxw committed Nov 21, 2024
1 parent 9abae3d commit 2ed3070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
env:
PUBLISH_GIT_USERNAME: "AppSignal release bot"
PUBLISH_GIT_EMAIL: "[email protected]"
PUBLISH_GIT_SSH_PATH: "/home/runner/.ssh"
PUBLISH_GIT_SIGN_KEY_PATH: "/home/runner/.ssh/sign_key"

jobs:
publish:
Expand All @@ -28,6 +26,8 @@ jobs:

- name: "Configure Git"
run: |
export PUBLISH_GIT_SSH_PATH="$HOME/.ssh"
export PUBLISH_GIT_SIGN_KEY_PATH="$HOME/.ssh/sign_key"
mkdir -p "$PUBLISH_GIT_SSH_PATH"
echo "${{secrets.PUBLISH_GIT_SIGN_KEY}}" > "$PUBLISH_GIT_SIGN_KEY_PATH"
echo "${{secrets.PUBLISH_GIT_SIGN_PUBLIC_KEY}}" > "$PUBLISH_GIT_SIGN_KEY_PATH.pub"
Expand Down

0 comments on commit 2ed3070

Please sign in to comment.