File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 27
27
- run : npm test
28
28
updateAPIDefinitions :
29
29
runs-on : ubuntu-latest
30
+ needs : [build]
31
+ outputs :
32
+ changeLog : ${{ steps.updateFolder.outputs.changeLog }}
30
33
steps :
31
34
- run : mkdir -p ~/oai_definitions/json
32
35
- run : cd ~/oai_definitions
@@ -44,13 +47,14 @@ jobs:
44
47
id : updateFolder
45
48
run : |
46
49
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"
48
52
release :
49
53
runs-on : ubuntu-latest
50
54
needs : [updateAPIDefinitions]
51
55
steps :
52
56
- uses : actions/checkout@v2
53
- - run : git pull origin test_branch_actions
57
+ - run : git pull
54
58
- run : git branch
55
59
- run : git log -3
56
60
- run : npm install
@@ -69,17 +73,15 @@ jobs:
69
73
strategy :
70
74
matrix :
71
75
node-version : [10.x]
72
- needs : [release]
76
+ needs : [updateAPIDefinitions, release]
73
77
steps :
74
78
- uses : actions/checkout@v2
75
79
- run : git fetch --tags
76
80
- name : Getting tag
77
81
id : test
78
82
run : |
79
83
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)"
81
84
- run : echo "${{steps.test.outputs.TAG_NAME}}"
82
- - run : echo "${{steps.test.outputs.CHANGE_LOG}}"
83
85
- name : update release
84
86
id : update_release
85
87
88
90
TAG_NAME : ${{steps.test.outputs.TAG_NAME}}
89
91
with :
90
92
is_append_body : true
91
- body : ${{env.CHANGE_LOG}} # new body text
93
+ body : ${{needs.updateAPIDefinitions.outputs.changeLog}}
You can’t perform that action at this time.
0 commit comments