Skip to content

Generate changelog on the latest PR for develop #106

Generate changelog on the latest PR for develop

Generate changelog on the latest PR for develop #106

name: Android - Deploy Staging build to Firebase
on:
push:
branches:
- develop
- test-lucas
jobs:
build_and_deploy_android:
name: Android - Deploy Staging build to Firebase
runs-on: ubuntu-latest
environment: staging
timeout-minutes: 30
steps:
- name: Check out
uses: actions/checkout@v3
- name: Find HEAD commit
id: head
run: echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- name: Limit changelog to the latest pull request only
uses: jossef/action-set-json-field@v2
with:
file: .github/workflows/changelog-config.json
field: max_pull_requests
value: 1
- name: Build changelog on "develop"
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: ".github/workflows/changelog-config.json"
# Listing PRs from the last tag to the HEAD commit
toTag: ${{ steps.head.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Print release notes
run: |
echo categorized_prs ${{ steps.changelog.outputs.categorized_prs }}
echo uncategorized_prs ${{ steps.changelog.outputs.uncategorized_prs }}
echo "${{ steps.changelog.outputs.changelog }}"