Skip to content

Action #17

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
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
41 changes: 26 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
- uses: CSVD/gh-actions-checkout@v4
id: checkout
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
fetch-depth: 0
persist-credentials: false

- name: Setup GITHUB Credentials
id: github_credentials
Expand All @@ -39,21 +38,33 @@ jobs:
github_app_installation_id: ${{ vars.GH_APP_INSTALLATION_ID }}
github_base_url: "${{ github.server_url }}/"

- name: Create bump and changelog
uses: CSVD/commitizen-action@main
# - name: Create bump and changelog
# uses: CSVD/commitizen-action@master
# with:
# changelog_increment_filename: body.md
# check_consistency: true
# commit: false
# debug: true
# github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# prerelease: true
# push: false

- name: Tag Release
uses: CSVD/release-tag@main
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
changelog_increment_filename: body.md
patch: true
env:
GITHUB_TOKEN: ${{ steps.github_credentials.outputs.github_token }}

- uses: CSVD/gh-actions-checkout@v4
- run: |
date > generated.txt
# Note: the following account information will not work on GHES
git config user.name "github-actions[bot]"
git config user.email "{user.id}+{user.login}@users.noreply.github.e.it.census.gov"
git add .
git commit -m "generated"
git push
# - uses: CSVD/gh-actions-checkout@v4
# - run: |
# date > generated.txt
# # Note: the following account information will not work on GHES
# git config user.name "github-actions[bot]"
# git config user.email "{user.id}+{user.login}@users.noreply.github.e.it.census.gov"
# git add .
# git commit -m "generated"
# git push
# - name: Push doc to Github Page
# uses: peaceiris/actions-gh-pages@v4
# with:
Expand Down
Loading