chore: release v2.1.0 (#20) #10
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will update the CHANGELOG page in the `bucketeer-io/bucketeer-docs` repository when a tag is created | |
name: Update CHANGELOG docs page | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
RELEASE_TAG: ${{ steps.release_tag.outputs.value }} | |
COMMIT_URL: ${{ steps.commit_url.outputs.value }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Store the tag value | |
id: release_tag | |
run: echo "value=$(git describe --tags --always --abbrev=0)" >> $GITHUB_OUTPUT | |
- name: Store the first line of commit message | |
env: | |
GH_TOKEN: ${{ github.token }} | |
id: commit_url | |
run: | | |
echo "value=$(gh repo view --json url --jq .url)/commit/$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | |
update_changelog_doc_page: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Workflow Dispatch | |
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2 | |
env: | |
DOC_REPO: bucketeer-io/bucketeer-docs | |
DOC_FILENAME: flutter.mdx | |
DOC_FILEPATH: docs/changelog/client-side | |
DOC_TITLE: Flutter | |
DOC_SLUG: /changelog/client-side/flutter | |
CHANGELOG_URL: https://raw.githubusercontent.com/bucketeer-io/flutter-client-sdk/main/CHANGELOG.md | |
FROM_REPOSITORY_NAME: bucketeer-io/flutter-client-sdk | |
FROM_REPOSITORY_URL: https://github.com/bucketeer-io/flutter-client-sdk | |
with: | |
repo: ${{ env.DOC_REPO }} | |
token: ${{ secrets.REPO_ACCESS_PAT }} | |
workflow: update-changelog.yaml | |
ref: main | |
inputs: '{"doc_filename": "${{ env.DOC_FILENAME }}", "doc_filepath": "${{ env.DOC_FILEPATH }}", "doc_title": "${{ env.DOC_TITLE }}", "doc_slug": "${{ env.DOC_SLUG }}", "changelog_url": "${{ env.CHANGELOG_URL }}", "from_repository_name": "${{ env.FROM_REPOSITORY_NAME }}", "from_repository_url": "${{ env.FROM_REPOSITORY_URL }}", "commit_url": "${{ needs.setup.outputs.COMMIT_URL }}", "release_tag": "${{ needs.setup.outputs.RELEASE_TAG }}"}' |