Skip to content

Commit

Permalink
add release workflow for terraform modules
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas committed Jul 28, 2024
1 parent 4371dac commit 3823d23
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/create-releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: create release

on:
pull_request:
types:
- closed
branches:
- main
run-name: create release from pr number ${{ github.event.number }}
jobs:
create-release:
runs-on: ubuntu-latest

steps:

- name: Token generator
uses: githubofkrishnadhas/github-access-using-githubapp@v2
id: token-generation
with:
github_app_id: ${{ secrets.TOKEN_GENERATOR_APPID }}
github_app_private_key: ${{ secrets.TOKEN_GENERATOR_PRIVATE_KEY }}

- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ steps.token-generation.outputs.token }}

- name: create-release
uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1
with:
token: ${{ steps.token-generation.outputs.token }}
pr_number: ${{ github.event.number }}
generate_release_notes: true

0 comments on commit 3823d23

Please sign in to comment.