Skip to content

Commit 0b34ce6

Browse files
fix(github-action): fix nits and issues related to github-action (#333)
* fixes * testing ref_name Co-authored-by: Mirza Sohail Hussain <mirza.sohailhussain@gmail.com>
1 parent 474f578 commit 0b34ce6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- uses: actions/setup-go@v2
2121
with:
2222
go-version: '1.13.15'
@@ -25,7 +25,7 @@ jobs:
2525
unit_test_latest:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2929
- uses: actions/setup-go@v2
3030
with:
3131
go-version: '1.18'

.github/workflows/integration_test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ jobs:
2626
if: ${{ github.event_name == 'pull_request' }}
2727
run: |
2828
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
29-
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
29+
echo "TRAVIS_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
30+
## Need to remove
31+
echo ${{ github.ref_name }}
3032
- name: set SDK Branch if not pull request
3133
if: ${{ github.event_name != 'pull_request' }}
3234
run: |
3335
echo "SDK_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
3436
echo "TRAVIS_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
37+
## Need to remove
38+
echo ${{ github.ref_name }}
3539
- name: Trigger build
3640
env:
3741
SDK: go

0 commit comments

Comments
 (0)