Skip to content

Commit f24fbe8

Browse files
committed
another try to get "$HOME" right
1 parent 88b58eb commit f24fbe8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/site.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- main
77
permissions:
88
contents: write
9+
env:
10+
THISDIR: ${{ github.workspace }}
911
jobs:
1012
deploy:
1113
runs-on: ubuntu-latest
@@ -27,14 +29,14 @@ jobs:
2729
distribution: 'temurin'
2830
# see https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#adding-a-system-path
2931
- name: make sure bin directory exists
30-
run: mkdir -p "$HOME/bin"
32+
run: mkdir -p "$THISDIR/bin"
3133
- name: get latest plantuml;
3234
run: |
33-
echo "$HOME/bin" >> "$GITHUB_PATH"
35+
echo "$THISDIR/bin" >> "$GITHUB_PATH"
3436
curl -L -o plantuml.jar https://github.com/plantuml/plantuml/releases/download/v1.2026.1/plantuml-1.2026.1.jar
35-
echo "java -Djava.awt.headless=true -jar $HOME/bin/plantml.jar $@" >>plantuml
37+
echo "java -Djava.awt.headless=true -jar $THISDIR/bin/plantml.jar $@" >>plantuml
3638
chmod +x plantuml
37-
working-directory: "$HOME/bin"
39+
working-directory: ./bin
3840

3941

4042
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.

0 commit comments

Comments
 (0)