forked from Sunbird-RC/sunbird-rc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.08 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Print Cache Directory
on:
push:
workflow_dispatch:
jobs:
print-cache-directory:
runs-on: ubuntu-latest
env:
BUILD_VERSION: $(git rev-parse --short HEAD)
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Maven dependencies
uses: actions/cache@v4
id: maven-cache
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('java/pom.xml','**/pom.xml', 'services/*/pom.xml', 'java/*/pom.xml', 'java/*/*/pom.xml', 'java/*/*/*/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Print cache directory
run: |
echo "Docker cache directory: $DOCKER_BUILDKIT_CACHE_DIR"
echo "Buildx cache directory: $BUILDX_CACHE_DIR"
echo "Buildx cache directory: $BUILD_VERSION"
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow ie holashchand
# limit-access-to-actor: true