Skip to content

Commit 954a02d

Browse files
fix: Updated with dynamic branch
1 parent 7e8882b commit 954a02d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- run: npm test
2828
updateAPIDefinitions:
2929
runs-on: ubuntu-latest
30+
needs: [build]
31+
outputs:
32+
changeLog: ${{ steps.updateFolder.outputs.changeLog }}
3033
steps:
3134
- run: mkdir -p ~/oai_definitions/json
3235
- run: cd ~/oai_definitions
@@ -44,13 +47,14 @@ jobs:
4447
id: updateFolder
4548
run: |
4649
cp -R ~/oai_definitions/CHANGES.md OAI_CHANGES.md
47-
bash scripts/updateApiDefinitions.sh
50+
source scripts/updateApiDefinitions.sh
51+
echo "::set-output name=changeLog::$changeLog"
4852
release:
4953
runs-on: ubuntu-latest
5054
needs: [updateAPIDefinitions]
5155
steps:
5256
- uses: actions/checkout@v2
53-
- run: git pull origin test_branch_actions
57+
- run: git pull
5458
- run: git branch
5559
- run: git log -3
5660
- run: npm install
@@ -69,17 +73,15 @@ jobs:
6973
strategy:
7074
matrix:
7175
node-version: [10.x]
72-
needs: [release]
76+
needs: [updateAPIDefinitions, release]
7377
steps:
7478
- uses: actions/checkout@v2
7579
- run: git fetch --tags
7680
- name: Getting tag
7781
id: test
7882
run: |
7983
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))"
80-
echo "::set-output name=CHANGE_LOG::$(node scripts/update-api-definitions.js)"
8184
- run: echo "${{steps.test.outputs.TAG_NAME}}"
82-
- run: echo "${{steps.test.outputs.CHANGE_LOG}}"
8385
- name: update release
8486
id: update_release
8587
uses: tubone24/[email protected]
@@ -88,4 +90,4 @@ jobs:
8890
TAG_NAME: ${{steps.test.outputs.TAG_NAME}}
8991
with:
9092
is_append_body: true
91-
body: ${{env.CHANGE_LOG}} # new body text
93+
body: ${{needs.updateAPIDefinitions.outputs.changeLog}}

0 commit comments

Comments
 (0)