Skip to content

Commit 24127e7

Browse files
authored
Update GitHub Actions workflows.
1 parent fc293e0 commit 24127e7

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/master.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/prerelease.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
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

0 commit comments

Comments
 (0)