Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub usernames in changelogs for releases #115

Merged
merged 13 commits into from
Mar 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove all usage of CharMixer/auto-changelog-action
  • Loading branch information
CasperWA committed Mar 10, 2023
commit be1ca75369d09b9da7e4711729e3bb82f492035f
24 changes: 18 additions & 6 deletions .github/workflows/ci_cd_updated_default_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,29 @@ jobs:
tags: true
unprotect_reviews: true

- name: Parse changelog configuration
if: env.RELEASE_RUN == 'false'
run: |
if [ -n "${{ inputs.changelog_exclude_tags_regex }}" ]; then
echo 'CHANGELOG_EXCLUDE_TAGS_REGEX=--exclude-tags-regex "${{ inputs.changelog_exclude_tags_regex }}"' >> $GITHUB_ENV
else
echo 'CHANGELOG_EXCLUDE_TAGS_REGEX=' >> $GITHUB_ENV
fi
if [ -n "${{ inputs.changelog_exclude_labels}}" ]; then
echo 'CHANGELOG_EXCLUDE_LABELS=--exclude-labels "${{ inputs.changelog_exclude_labels }}"' >> $GITHUB_ENV
else
echo 'CHANGELOG_EXCLUDE_LABELS=' >> $GITHUB_ENV
fi
PROJECT=$(echo $GITHUB_REPOSITORY | cut -d/ -f2- )
echo "CHANGELOG_PROJECT=--project ${PROJECT}" >> $GITHUB_ENV

# Note: This updated changelog will only exist for the `latest` documentation
# release.
- name: Update changelog with unreleased changes
if: env.RELEASE_RUN == 'false'
uses: CharMixer/auto-changelog-action@v1
uses: docker://githubchangeloggenerator/github-changelog-generator:1.16.2
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
release_branch: ${{ inputs.default_repo_branch }}
exclude_tags_regex: "${{ inputs.changelog_exclude_tags_regex }}"
exclude_labels: "${{ inputs.changelog_exclude_labels }}"
future_release: "Unreleased changes"
args: --user "${{ github.repository_owner }}" ${{ env.CHANGELOG_PROJECT }} --token "${{ secrets.PAT || secrets.GITHUB_TOKEN }}" --release-branch "${{ inputs.default_repo_branch }}" --future-release "Unreleased changes" ${{ env.CHANGELOG_EXCLUDE_TAGS_REGEX }} ${{ env.CHANGELOG_EXCLUDE_LABELS }}

- name: Deploy documentation
if: env.RELEASE_RUN == 'false' && ( ! inputs.test )
Expand Down