generated from dfds/aws-modules-template
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 952 Bytes
/
auto-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
name: Auto release on merge
on:
push:
branches: [master, main]
paths-ignore:
- .github/**
- "**/*.md"
- .gitignore
- .pre-commit-config.yaml
- .tflint.hcl
- LICENSE
- renovate.json
- examples/**
- scripts/**
- tests/**
jobs:
auto-release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: release
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""
- name: Dispatch to blueprints
run: |
curl -X POST https://api.github.com/repos/dfds/infrastructure-blueprints/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.AUTH_TOKEN }} \
--data '{"event_type": "trigger-rds-workflow", "client_payload": { "release_tag": "${{ steps.release.outputs.tag_name }}" }}'