From 66748fa506d356ab4df01c535ad5989905a602ee Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 23 Oct 2024 22:38:55 -0400 Subject: [PATCH 1/3] fix main to master --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8ead3b..bfcda97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: github_base_url: "${{ github.server_url }}/" - name: Create bump and changelog - uses: CSVD/commitizen-action@main + uses: CSVD/commitizen-action@master with: github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} changelog_increment_filename: body.md From f11140e6d031c9e59a2ccfe521be18eeda0aba47 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 23 Oct 2024 22:56:13 -0400 Subject: [PATCH 2/3] options --- .github/workflows/release.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfcda97..7b2b869 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,18 +42,23 @@ jobs: - name: Create bump and changelog uses: CSVD/commitizen-action@master with: - github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} changelog_increment_filename: body.md + check_consistency: true + commit: false + debug: true + github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + prerelease: true + push: false - - 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: From 622cadfcffa9afda9ecd074e980927e31eaac3ef Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 23 Oct 2024 23:20:45 -0400 Subject: [PATCH 3/3] use example --- .github/workflows/release.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b2b869..3b9997a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -39,16 +38,23 @@ 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@master + # - 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: - changelog_increment_filename: body.md - check_consistency: true - commit: false - debug: true - github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - prerelease: true - push: false + patch: true + env: + GITHUB_TOKEN: ${{ steps.github_credentials.outputs.github_token }} # - uses: CSVD/gh-actions-checkout@v4 # - run: |