Skip to content

Commit

Permalink
Update for set environment variables issue of GHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 committed Nov 16, 2020
1 parent e48b8fb commit b63130e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 300 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/account-mailer-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/auth-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/auth-web-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/events-listener-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down
271 changes: 0 additions & 271 deletions .github/workflows/integration-testing-dev.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/notify-api&queue-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down Expand Up @@ -76,17 +76,17 @@ jobs:
- uses: actions/checkout@v2
- name: Set env by input
run: |
echo "::set-env name=TAG_NAME::${{ github.event.inputs.environement }}"
echo "TAG_NAME=${{ github.event.inputs.environement }}" >> $GITHUB_ENV
- name: Set env by master branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/master'
run: |
echo "::set-env name=TAG_NAME::test"
echo "TAG_NAME=test" >> $GITHUB_ENV
- name: Set env by development branch
if: env.TAG_NAME == '' && github.ref == 'refs/heads/development'
run: |
echo "::set-env name=TAG_NAME::dev"
echo "TAG_NAME=dev" >> $GITHUB_ENV
- uses: pwei1018/bcrs-cd-action@latest
with:
Expand Down
Loading

0 comments on commit b63130e

Please sign in to comment.