Skip to content

[RN][Releases] Generate the changelog automatically #8

[RN][Releases] Generate the changelog automatically

[RN][Releases] Generate the changelog automatically #8

name: Generate Changelog
on:
pull_request:
workflow_call:
jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Configure Git
shell: bash
run: |
git config --local user.email "[email protected]"
git config --local user.name "React Native Bot"
- name: Generate Changelog
uses: actions/github-script@v6
with:
script: |
const {generateChangelog} = require('./.github/workflow-scripts/generateChangelog');
const version = 'v0.79.0-rc.3' //"${{ github.ref_name }}";
await generateChangelog(version, '${{secrets.REACT_NATIVE_BOT_GITHUB_TOKEN}}'');