File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 with :
7373 fetch-depth : 0
7474
75- - name : Configure sccache
76- uses : actions/github-script@v7
77- with :
78- script : |
79- core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
80- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
81-
8275 - name : Set up Docker Buildx
8376 uses : docker/setup-buildx-action@v3
8477
10497 cache-from : type=gha
10598 cache-to : type=gha,mode=max
10699 secret-envs : |
107- ACTIONS_RUNTIME_TOKEN=ACTIONS_RUNTIME_TOKEN
108- ACTIONS_RESULTS_URL=ACTIONS_RESULTS_URL
100+ ACTIONS_RUNTIME_TOKEN
101+ ACTIONS_CACHE_URL
109102
110103 - name : Create GitHub release tag
111104 uses : marvinpinto/action-automatic-releases@latest
Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ COPY Cargo.toml Cargo.lock ./
2121COPY src ./src
2222COPY example.config.yaml messageTamplate.default.md ./
2323
24- RUN --mount=type=secret,id=ACTIONS_RESULTS_URL,env=ACTIONS_RESULTS_URL \
25- --mount=type=secret,id=ACTIONS_RUNTIME_TOKEN,env=ACTIONS_RUNTIME_TOKEN \
24+ RUN --mount=type=secret,id=ACTIONS_RUNTIME_TOKEN \
25+ --mount=type=secret,id=ACTIONS_CACHE_URL \
26+ export ACTIONS_RUNTIME_TOKEN=$(cat /run/secrets/ACTIONS_RUNTIME_TOKEN) && \
27+ export ACTIONS_CACHE_URL=$(cat /run/secrets/ACTIONS_CACHE_URL) && \
2628 cargo build --release && \
2729 sccache --show-stats || echo "sccache stats unavailable"
2830
You can’t perform that action at this time.
0 commit comments