You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2026/03/17 06:57:49 UTC
(shardingsphere) branch master updated: workflow: use RUNNER_TEMP in upload-source-snapshot action (#38479)
This is an automated email from the ASF dual-hosted git repository.
zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 1bb1696ae6f workflow: use RUNNER_TEMP in upload-source-snapshot action (#38479)
1bb1696ae6f is described below
commit 1bb1696ae6f9fc2817dc909424e94fa923631c4b
Author: Hongsheng Zhong <zh...@apache.org>
AuthorDate: Tue Mar 17 14:57:44 2026 +0800
workflow: use RUNNER_TEMP in upload-source-snapshot action (#38479)
* Add logs for runner.temp and GITHUB_WORKSPACE in e2e-sql workflows
* Use RUNNER_TEMP in upload-source-snapshot action
---
.github/workflows/e2e-operation.yml | 1 +
.github/workflows/e2e-sql.yml | 9 +++++++--
.github/workflows/nightly-e2e-operation.yml | 1 +
.github/workflows/nightly-e2e-sql.yml | 5 +++++
.../resources/actions/upload-source-snapshot/action.yml | 9 +++++++--
5 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/e2e-operation.yml b/.github/workflows/e2e-operation.yml
index 32a6d81c55c..ba8811a3801 100644
--- a/.github/workflows/e2e-operation.yml
+++ b/.github/workflows/e2e-operation.yml
@@ -113,6 +113,7 @@ jobs:
- name: Logs
run: |
echo "runner.temp=${{ runner.temp }}"
+ echo "RUNNER_TEMP=$RUNNER_TEMP"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
- name: Download Source Snapshot
uses: actions/download-artifact@v4
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 508165d7b69..bf2d76f9c7c 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -100,7 +100,7 @@ jobs:
'$ARGS.named')
bash .github/workflows/resources/scripts/generate-e2e-sql-matrix.sh "$filters"
echo "filter-json=$filters" >> "$GITHUB_OUTPUT"
- - name: Log Outputs
+ - name: Logs
run: |
echo "smoke-matrix=${{ steps.generate-matrix.outputs.smoke-matrix }}"
echo "has-jobs=${{ steps.generate-matrix.outputs.has-jobs }}"
@@ -141,6 +141,11 @@ jobs:
fail-fast: false
matrix: ${{ fromJSON(needs.detect-and-generate-matrix.outputs.smoke-matrix) }}
steps:
+ - name: Logs
+ run: |
+ echo "runner.temp=${{ runner.temp }}"
+ echo "RUNNER_TEMP=$RUNNER_TEMP"
+ echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
- name: Download Source Snapshot
uses: actions/download-artifact@v4
with:
@@ -194,7 +199,7 @@ jobs:
"$FILTER_JSON" \
"$FULL_MATRIX" \
"$SMOKE_MATRIX"
- - name: Log Outputs
+ - name: Logs
run: |
echo "matrix=${{ steps.generate.outputs.matrix }}"
echo "has-remaining-jobs=${{ steps.generate.outputs.has-remaining-jobs }}"
diff --git a/.github/workflows/nightly-e2e-operation.yml b/.github/workflows/nightly-e2e-operation.yml
index 4113ae26ab1..7a4445d8cb9 100644
--- a/.github/workflows/nightly-e2e-operation.yml
+++ b/.github/workflows/nightly-e2e-operation.yml
@@ -112,6 +112,7 @@ jobs:
- name: Logs
run: |
echo "runner.temp=${{ runner.temp }}"
+ echo "RUNNER_TEMP=$RUNNER_TEMP"
echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
- name: Download Source Snapshot
uses: actions/download-artifact@v4
diff --git a/.github/workflows/nightly-e2e-sql.yml b/.github/workflows/nightly-e2e-sql.yml
index fd32c450ca0..500ed270001 100644
--- a/.github/workflows/nightly-e2e-sql.yml
+++ b/.github/workflows/nightly-e2e-sql.yml
@@ -102,6 +102,11 @@ jobs:
mode: Standalone
scenario: passthrough
steps:
+ - name: Logs
+ run: |
+ echo "runner.temp=${{ runner.temp }}"
+ echo "RUNNER_TEMP=$RUNNER_TEMP"
+ echo "GITHUB_WORKSPACE=$GITHUB_WORKSPACE"
- name: Download Source Snapshot
uses: actions/download-artifact@v4
with:
diff --git a/.github/workflows/resources/actions/upload-source-snapshot/action.yml b/.github/workflows/resources/actions/upload-source-snapshot/action.yml
index 1eef9ae066d..cfe4d71ed70 100644
--- a/.github/workflows/resources/actions/upload-source-snapshot/action.yml
+++ b/.github/workflows/resources/actions/upload-source-snapshot/action.yml
@@ -21,12 +21,17 @@ description: 'Create and upload source snapshot to avoid repeated checkout'
runs:
using: composite
steps:
+ - name: Logs
+ shell: bash
+ run: |
+ echo "runner.temp=${{ runner.temp }}"
+ echo "RUNNER_TEMP=$RUNNER_TEMP"
- name: Create Source Snapshot
shell: bash
- run: git archive --format=tar.gz --output=/tmp/source-snapshot.tar.gz HEAD -- . ':(exclude)docs'
+ run: git archive --format=tar.gz --output="$RUNNER_TEMP/source-snapshot.tar.gz" HEAD -- . ':(exclude)docs'
- name: Upload Source Snapshot
uses: actions/upload-artifact@v6
with:
name: source-snapshot
- path: /tmp/source-snapshot.tar.gz
+ path: ${{ runner.temp }}/source-snapshot.tar.gz
retention-days: 3