update change log script

This commit is contained in:
Maidul Islam
2024-03-05 14:06:09 -05:00
parent e72e6dd6ee
commit cd0df2d617
2 changed files with 34 additions and 24 deletions
@@ -2,7 +2,10 @@ name: Generate Changelog
permissions:
contents: write
on: [workflow_dispatch]
on:
push:
tags:
- "infisical/v*.*.*-postgres"
jobs:
generate_changelog:
@@ -10,6 +13,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
@@ -24,13 +29,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Set git identity
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@infisical.noreply.github.com'
- name: Save the changelog to file
run: |
echo "${{ steps.gen-changelog.outputs.changelog }}" >> CHANGELOG.md
git add CHANGELOG.md
git commit -m "chore: changelog update" --no-verify
git push origin main
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}