Skip to content

Commit

Permalink
Merge pull request #1 from devwithkrishna/feature/add-release-workflow
Browse files Browse the repository at this point in the history
add release workflow for terraform modules
  • Loading branch information
githubofkrishnadhas authored Jul 28, 2024
2 parents 4371dac + 3823d23 commit 3507741
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 3507741

Please sign in to comment.