Skip to content

Commit

Permalink
SCALRCORE-18479 > Fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Vang committed Jun 1, 2021
1 parent 3ded090 commit f30ca57
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: "1.13"
- name: Environment settings
env:
API_BRANCH: ${{ contains(github.event.head_commit.message, '[API_BRANCH]') }}
DB_BRANCH: ${{ contains(github.event.head_commit.message, '[DB_BRANCH]') }}
run: |
echo "API_BRANCH=${API_BRANCH}" >> $GITHUB_ENV
echo "Set env variable from commit message: API_BRANCH=${API_BRANCH}"
echo "DB_BRANCH=${DB_BRANCH}" >> $GITHUB_ENV
echo "Set env variable from commit message: DB_BRANCH=${DB_BRANCH}"
echo BRANCH=${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
echo "Set env variable: BRANCH=${GITHUB_REF#refs/heads/}"
- name: Set API_BRANCH
if: ${{ contains(github.event.head_commit.message, '[API_BRANCH]') }}
run: echo "API_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Set DB_BRANCH
if: ${{ contains(github.event.head_commit.message, '[DB_BRANCH]') }}
run: echo "DB_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
- name: Create container
id: create
uses: Scalr/gh-action-revizor@master
Expand Down

0 comments on commit f30ca57

Please sign in to comment.