From ce85a58500d3214d138feefb071db6a181d8fddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 10 Jan 2025 15:13:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E6=97=B6=E5=8C=BA.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/测time.yaml | 11 ----------- .github/workflows/测时区.yaml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 .github/workflows/测time.yaml create mode 100644 .github/workflows/测时区.yaml diff --git a/.github/workflows/测time.yaml b/.github/workflows/测time.yaml deleted file mode 100644 index 1139f18..0000000 --- a/.github/workflows/测time.yaml +++ /dev/null @@ -1,11 +0,0 @@ -on: - push: - -jobs: - job1: - runs-on: ubuntu-amd64 - steps: - - name: step1 - run: | - touch somefile - time zip -r somefile.zip somefile diff --git a/.github/workflows/测时区.yaml b/.github/workflows/测时区.yaml new file mode 100644 index 0000000..dd7cf90 --- /dev/null +++ b/.github/workflows/测时区.yaml @@ -0,0 +1,14 @@ +on: + push: +defaults: + run: + shell: bash +jobs: + test-timezone: + runs-on: ubuntu-amd64 + steps: + - name: step1 + run: | + set -x + date; + TZ=Asia/Shanghai date; \ No newline at end of file