forked from infracost/infracost
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.57 KB
/
post-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
release:
types: [published]
workflow_dispatch:
name: Upload post-release assets
jobs:
update-choco-version:
if: ${{ !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') }}
name: Update Chocolatey version
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H 'authorization: Bearer ${{ secrets.POST_RELEASE_TRIGGERS_TOKEN }}' \
https://api.github.com/repos/infracost/chocolatey-packages/dispatches \
-d '{"event_type":"infracost_choco"}'
update-atlantis-versions:
if: ${{ !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') }}
name: Update Atlantis versions
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H 'authorization: Bearer ${{ secrets.POST_RELEASE_TRIGGERS_TOKEN }}' \
https://api.github.com/repos/infracost/infracost-atlantis/dispatches \
-d '{"event_type":"infracost_atlantis"}'
update-infracost-docs:
if: ${{ !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') }}
name: Update Infracost Docs to reference latest CLI version
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H 'authorization: Bearer ${{ secrets.POST_RELEASE_TRIGGERS_TOKEN }}' \
https://api.github.com/repos/infracost/docs/dispatches \
-d '{"event_type":"bump_cli_version"}'