Skip to content

Commit

Permalink
Precreate directories, if they do not exist, and set file permissions.
Browse files Browse the repository at this point in the history
Requires group write & to use a special group due to Github Actions user/groups that run the action.

Signed-off-by: Daniel Mikusa <dmikusa@vmware.com>
  • Loading branch information
Daniel Mikusa authored and ForestEckhardt committed Feb 8, 2022
1 parent 26b8db0 commit 4376022
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 612 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test-pull-request-java-native-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Directories
run: |
#!/usr/bin/env bash
set -euo pipefail
mkdir -p ~/.m2/repository
mkdir -p ~/.m2/repository/wrapper/dists
mkdir -p ~/.gradle/caches
mkdir -p ~/.gradle/wrapper/dists
chmod -R 775 ~/.m2
chmod -R 775 ~/.gradle
- name: Test Java Native Image Samples
run: |
./scripts/smoke.sh --suite java/native-image \
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test-pull-request-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Directories
run: |
#!/usr/bin/env bash
set -euo pipefail
mkdir -p ~/.m2/repository
mkdir -p ~/.m2/repository/wrapper/dists
mkdir -p ~/.gradle/caches
mkdir -p ~/.gradle/wrapper/dists
chmod -R 775 ~/.m2
chmod -R 775 ~/.gradle
- name: Test Java Samples
run: |
./scripts/smoke.sh --suite java \
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ require (
github.com/paketo-buildpacks/occam v0.3.0
github.com/sclevine/spec v1.4.0
)

replace github.com/paketo-buildpacks/occam => github.com/dmikusa-pivotal/occam v0.3.1-0.20220203020615-62e789ac0a7b
Loading

0 comments on commit 4376022

Please sign in to comment.