File tree Expand file tree Collapse file tree 4 files changed +15
-17
lines changed
Expand file tree Collapse file tree 4 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -424,10 +424,6 @@ jobs:
424424 author_name : Failure in publishing SDK
425425 fields : repo,commit,author,action
426426 status : ${{ job.status }}
427- - if : success() && github.event_name == 'push'
428- name : Add SDK version tag
429- run : git tag sdk/${{ github.ref_name }} && git push origin sdk/${{ github.ref_name
430- }}
431427 strategy :
432428 fail-fast : true
433429 matrix :
Original file line number Diff line number Diff line change @@ -424,10 +424,6 @@ jobs:
424424 author_name : Failure in publishing SDK
425425 fields : repo,commit,author,action
426426 status : ${{ job.status }}
427- - if : success() && github.event_name == 'push'
428- name : Add SDK version tag
429- run : git tag sdk/${{ github.ref_name }} && git push origin sdk/${{ github.ref_name
430- }}
431427 strategy :
432428 fail-fast : true
433429 matrix :
Original file line number Diff line number Diff line change @@ -370,10 +370,6 @@ jobs:
370370 author_name : Failure in publishing SDK
371371 fields : repo,commit,author,action
372372 status : ${{ job.status }}
373- - if : success() && github.event_name == 'push'
374- name : Add SDK version tag
375- run : git tag sdk/${{ github.ref_name }} && git push origin sdk/${{ github.ref_name
376- }}
377373 strategy :
378374 fail-fast : true
379375 matrix :
Original file line number Diff line number Diff line change 9999 - " 3.7"
100100 create_docs_build :
101101 name : create_docs_build
102- needs : publish_sdk
102+ needs : tag_sdk
103103 runs-on : ubuntu-latest
104104 steps :
105105 - name : Install pulumictl
@@ -382,10 +382,6 @@ jobs:
382382 author_name : Failure in publishing SDK
383383 fields : repo,commit,author,action
384384 status : ${{ job.status }}
385- - if : success() && github.event_name == 'push'
386- name : Add SDK version tag
387- run : git tag sdk/${{ github.ref_name }} && git push origin sdk/${{ github.ref_name
388- }}
389385 strategy :
390386 fail-fast : true
391387 matrix :
@@ -397,6 +393,20 @@ jobs:
397393 - 14.x
398394 pythonversion :
399395 - " 3.7"
396+ tag_sdk :
397+ name : tag_sdk
398+ needs : publish_sdk
399+ runs-on : ubuntu-latest
400+ steps :
401+ - name : Checkout Repo
402+ uses : actions/checkout@v2
403+ - name : Install pulumictl
404+ uses : jaxxstorm/action-install-gh-release@v1.2.0
405+ with :
406+ repo : pulumi/pulumictl
407+ - name : Add SDK version tag
408+ run : git tag sdk/$(pulumictl get version --language generic) && git push origin
409+ sdk/$(pulumictl get version --language generic)
400410 test :
401411 name : test
402412 needs : build_sdk
You can’t perform that action at this time.
0 commit comments