Skip to content

Commit

Permalink
ci: Accessing env.* is not supported at GA's job level
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Mar 26, 2020
1 parent 5daf930 commit 08ba85b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ on:
- '*'

jobs:
check_ci:
name: ${{ matrix.os }} ${{ matrix.target }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os: [ubuntu-18.04]
target: [13.x]
# env.SKIP_CI == 'true' is not supported at job level
# check_ci:
# name: ${{ matrix.os }} ${{ matrix.target }}
# runs-on: ${{ matrix.os }}
# timeout-minutes: 120
# strategy:
# matrix:
# os: [ubuntu-18.04]
# target: [13.x]

steps:
- name: Git log
run: |
echo '::set-env name=SKIP_CI::true'
# steps:
# - name: Git log
# run: |
# echo '::set-env name=SKIP_CI::true'

if [ -z "$(git describe --exact-match HEAD)" ] && [ -z git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+') ]; then
echo '::set-env name=SKIP_CI::false'
fi
# if [ -z "$(git describe --exact-match HEAD)" ] && [ -z git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+') ]; then
# echo '::set-env name=SKIP_CI::false'
# fi

test:
if: "env.SKIP_CI == 'false' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')"
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')"
name: ${{ matrix.os }} ${{ matrix.target }}
needs: check_ci
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/sauce-labs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ on:
- '*'

jobs:
check_ci:
name: ${{ matrix.os }} ${{ matrix.target }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os: [ubuntu-18.04]
target: [13.x]
# env.SKIP_CI == 'true' is not supported at job level
# check_ci:
# name: ${{ matrix.os }} ${{ matrix.target }}
# runs-on: ${{ matrix.os }}
# timeout-minutes: 120
# strategy:
# matrix:
# os: [ubuntu-18.04]
# target: [13.x]

steps:
- name: Git log
run: |
echo '::set-env name=SKIP_CI::true'
# steps:
# - name: Git log
# run: |
# echo '::set-env name=SKIP_CI::true'

if [ -z "$(git describe --exact-match HEAD)" ] && [ -z git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+') ]; then
echo '::set-env name=SKIP_CI::false'
fi
# if [ -z "$(git describe --exact-match HEAD)" ] && [ -z git log --format=%B -n 1 | grep -iE '^[0-9]+[.]{1,}[0-9]+[.]{1,}[0-9]+') ]; then
# echo '::set-env name=SKIP_CI::false'
# fi

test:
if: "env.SKIP_CI == 'false' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')"
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, 'doc:')"
name: ${{ matrix.os }} ${{ matrix.target }}
needs: check_ci
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down

0 comments on commit 08ba85b

Please sign in to comment.