Skip to content

Commit

Permalink
Chore: Configure branch and commit info ⚙️
Browse files Browse the repository at this point in the history
  • Loading branch information
DHedgecock committed Feb 20, 2020
1 parent 4627aea commit fd9e486
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup master branch
if: github.ref == 'refs/heads/master'
run: |
echo "Master branch"
export MASTER_BRANCH="master"
export MASTER_SHA=$SHA
env:
SHA: ${{ github.sha }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -44,8 +52,8 @@ jobs:
env:
# Add required git env values for code cov reporting, ref:
# https://docs.codeclimate.com/docs/github-actions-test-coverage
GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
GIT_BRANCH: ${{ github.head_ref }}
GIT_COMMIT_SHA: process.env.MASTER_SHA || ${{ github.event.pull_request.head.sha }}
GIT_BRANCH: process.env.MASTER_BRANCH || ${{ github.head_ref }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
publish:
name: Continuous Deployment
Expand Down

0 comments on commit fd9e486

Please sign in to comment.