From a8aab2fec2b219d5add5627525325b2d55d847c8 Mon Sep 17 00:00:00 2001 From: Jason Dent Date: Fri, 8 Jul 2022 08:13:40 +0200 Subject: [PATCH] ci: Cleanup name of CSpell Update PR (#818) * ci: Cleanup name of CSpell Update PR * ci: Change the type of PR based upon what gets changed --- .github/workflows/latest.yml | 13 ------------- .github/workflows/update-cspell.yml | 4 ++-- .github/workflows/update-dependencies.yml | 5 +++-- 3 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/latest.yml diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml deleted file mode 100644 index 5f2db08b4..000000000 --- a/.github/workflows/latest.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Keep the versions up-to-date - -on: - release: - types: [published] - -jobs: - actions-tagger: - runs-on: ubuntu-latest - steps: - - uses: Actions-R-Us/actions-tagger@v2 - with: - publish_latest_tag: true diff --git a/.github/workflows/update-cspell.yml b/.github/workflows/update-cspell.yml index 9be68d96e..ccf5c0f5d 100644 --- a/.github/workflows/update-cspell.yml +++ b/.github/workflows/update-cspell.yml @@ -63,10 +63,10 @@ jobs: if: env.git_status == 'dirty' uses: peter-evans/create-pull-request@v4 with: - commit-message: "fix: Workflow Bot -- Update CSpell (${{ env.CSPELL_VERSION }})" + commit-message: "fix: Update CSpell to (${{ env.CSPELL_VERSION }})" branch: ${{ env.NEW_BRANCH }} base: ${{ env.REF_BRANCH }} - title: "fix: Workflow Bot -- Update CSpell (${{ env.CSPELL_VERSION }}) (${{ env.REF_BRANCH }})" + title: "fix: Update CSpell to (${{ env.CSPELL_VERSION }}) (${{ env.REF_BRANCH }})" token: ${{ steps.generate-token.outputs.token }} body: ${{ env.git_body }} delete-branch: true diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 14cb9fdb7..595d6ec9b 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -35,6 +35,7 @@ jobs: run: yarn clean-build - name: Has changes run: | + git --no-pager diff --compact-summary --exit-code action && echo "PR_TYPE=ci" >> $GITHUB_ENV || echo "PR_TYPE=fix" >> $GITHUB_ENV git --no-pager diff --compact-summary --exit-code && echo "git_status=clean" >> $GITHUB_ENV || echo "git_status=dirty" >> $GITHUB_ENV git --no-pager diff --compact-summary - name: Gen Body @@ -54,10 +55,10 @@ jobs: if: env.git_status == 'dirty' uses: peter-evans/create-pull-request@v4 with: - commit-message: "ci: Workflow Bot -- Update ALL Dependencies" + commit-message: "${{ env.PR_TYPE }}: Workflow Bot -- Update ALL Dependencies" branch: ${{ env.NEW_BRANCH }} base: ${{ env.REF_BRANCH }} - title: "ci: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})" + title: "${{ env.PR_TYPE }}: Workflow Bot -- Update ALL Dependencies (${{ env.REF_BRANCH }})" token: ${{ steps.generate-token.outputs.token }} body: ${{ env.git_body }} delete-branch: true