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