-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from KrogerWalt/DCPFS-1234/Added/Changelog_upd…
…ater attempt dogfooding
- Loading branch information
Showing
6 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: On PR Merge | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [closed] | ||
branches: [main] | ||
|
||
jobs: | ||
Update-Changelog: | ||
if: ${{ github.event.pull_request.merged }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: KrogerWalt/action-get-latest-tag@v2 | ||
id: get-latest-tag | ||
|
||
- uses: KrogerWalt/action-update-changelog@main | ||
id: changelog-update | ||
with: | ||
branch_name: ${{ github.event.pull_request.head.ref }} | ||
ticket_url_prefix: https://github.com/${{ github.repository }}/issues/ | ||
version: ${{ steps.get-latest-tag.outputs.tag }} | ||
|
||
- name: Commit Changelog | ||
run: | | ||
git config --global --replace-all user.name "$GITHUB_ACTOR" | ||
git config --global --replace-all user.email "[email protected]" | ||
git push origin main | ||
- name: Enable "include administrators" branch protection | ||
uses: benjefferies/branch-protection-bot@master | ||
if: ${{ steps.version-label.outputs.level != null && (cancelled() || failure() || success()) }} # Force to always run this step to ensure "include administrators" is always turned back on | ||
with: | ||
access-token: ${{ secrets.ADMIN_PAT }} | ||
enforce_admins: true | ||
branch: main | ||
|
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
|
||
jobs: | ||
release: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
This file contains 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 file contains 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 file contains 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