Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/add-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
if: "! startsWith(github.head_ref, 'release/v')"
- name: Get version
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"
run: echo "NEXT_VERSION=${HEAD_REF#release/}" >> $GITHUB_ENV
env:
HEAD_REF: ${{ github.head_ref }}
if: startsWith(github.head_ref, 'release/v')
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
EXCLUDE_MERGED: 'true'
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v3
Expand All @@ -30,7 +30,7 @@ jobs:
.eslintrc
if: "! contains(env.COMMIT_MESSAGE, '[skip ci]') && ! contains(env.COMMIT_MESSAGE, '[ci skip]')"
- name: Set running flag
run: echo "::set-env name=RUNNING::"
run: echo "RUNNING=" >> $GITHUB_ENV
if: "! env.GIT_DIFF"

- name: Get Yarn Cache Directory
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
node: ['12', '14']
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: technote-space/get-git-comment-action@v1
- uses: technote-space/get-diff-action@v3
Expand All @@ -82,18 +82,18 @@ jobs:
jest.config.js
if: "! contains(env.COMMIT_MESSAGE, '[skip ci]') && ! contains(env.COMMIT_MESSAGE, '[ci skip]')"
- name: Set running flag
run: echo "::set-env name=RUNNING::"
run: echo "RUNNING=" >> $GITHUB_ENV
if: "! env.GIT_DIFF"
- name: Set running flag
if: "matrix.node == '12' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- name: Set running flag
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- name: Set running flag
run: |
if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
echo "::set-env name=RUNNING::"
echo "RUNNING=" >> $GITHUB_ENV
fi

- name: Setup node
Expand Down Expand Up @@ -140,25 +140,25 @@ jobs:
target: ['npm', 'gpr']
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- name: Set running flag
run: |
if [ -z "$NPM_AUTH_TOKEN" ]; then
echo "::set-env name=RUNNING::"
echo "RUNNING=" >> $GITHUB_ENV
fi
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- uses: actions/checkout@v2
if: env.RUNNING
- name: Set running flag
run: npx can-npm-publish || echo "::set-env name=RUNNING::"
run: npx can-npm-publish || echo "RUNNING=" >> $GITHUB_ENV
if: env.RUNNING && matrix.target == 'npm'
- name: Set running flag
run: |
LATEST=`npm view . version` 2> /dev/null || :
CURRENT=`cat package.json | jq -r .version`
if [ "$LATEST" = "$CURRENT" ]; then
echo "::set-env name=RUNNING::"
echo "RUNNING=" >> $GITHUB_ENV
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -220,7 +220,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Get version
run: echo "::set-env name=TAG_NAME::${HEAD_REF#refs/tags/}"
run: echo "TAG_NAME=${HEAD_REF#refs/tags/}" >> $GITHUB_ENV
env:
HEAD_REF: ${{ github.ref }}
- name: Create Release
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/pr-updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,26 @@ jobs:
with:
CONFIG_FILENAME: workflow-settings.json
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set running flag
run: |
if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
echo "::set-env name=RUNNING::"
echo "RUNNING=" >> $GITHUB_ENV
fi

- name: Sort
run: npx sort-package-json
if: env.RUNNING
- name: Get version
uses: technote-space/get-next-version-action@v1
with:
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
if: "env.RUNNING && ! startsWith(github.head_ref, 'release/v')"
- name: Get version
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"
run: echo "NEXT_VERSION=${HEAD_REF#release/}" >> $GITHUB_ENV
env:
HEAD_REF: ${{ github.head_ref }}
if: env.RUNNING && startsWith(github.head_ref, 'release/v')
Expand All @@ -88,11 +91,11 @@ jobs:
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/')"
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING::1"
run: echo "RUNNING=1" >> $GITHUB_ENV
- name: Set running flag
run: |
if [ -z "$NPM_AUTH_TOKEN" ]; then
echo "::set-env name=RUNNING::"
echo "RUNNING=" >> $GITHUB_ENV
fi
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
timeout-minutes: 10
steps:
- name: Set running flag
run: echo "::set-env name=RUNNING1::"
run: echo "RUNNING1=" >> $GITHUB_ENV
- name: Set running flag
run: echo "::set-env name=RUNNING1::1"
run: echo "RUNNING1=1" >> $GITHUB_ENV
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
- uses: technote-space/load-config-action@v1
if: env.RUNNING1
Expand Down Expand Up @@ -46,24 +46,27 @@ jobs:
AUTO_MERGE_THRESHOLD_DAYS: 14

- name: Set running flag
run: echo "::set-env name=RUNNING2::"
run: echo "RUNNING2=" >> $GITHUB_ENV
- name: Set running flag
run: echo "::set-env name=RUNNING2::1"
run: echo "RUNNING2=1" >> $GITHUB_ENV
if: env.RUNNING1 && steps.update_deps.outputs.result != 'succeeded' && github.event_name == 'pull_request' && github.event.action != 'closed' && startsWith(github.head_ref, 'release/')
- uses: actions/checkout@v2
if: env.RUNNING2
- name: Set running flag
run: |
if [[ ! -f package.json ]] || [[ $(< package.json jq -r '.version == null') == 'true' ]]; then
echo "::set-env name=RUNNING2::"
echo "RUNNING2=" >> $GITHUB_ENV
fi
- name: Sort
run: npx sort-package-json
if: env.RUNNING2
- name: Get version
uses: technote-space/get-next-version-action@v1
with:
EXCLUDE_MESSAGES: ${{ env.EXCLUDE_MESSAGES }}
if: "env.RUNNING2 && ! startsWith(github.head_ref, 'release/v')"
- name: Get version
run: echo "::set-env name=NEXT_VERSION::${HEAD_REF#release/}"
run: echo "NEXT_VERSION=${HEAD_REF#release/}" >> $GITHUB_ENV
env:
HEAD_REF: ${{ github.head_ref }}
if: env.RUNNING2 && startsWith(github.head_ref, 'release/v')
Expand Down