diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml index 460f1e91..3c5029aa 100644 --- a/.github/workflows/changelog-check.yml +++ b/.github/workflows/changelog-check.yml @@ -10,6 +10,7 @@ on: - opened - synchronize - labeled + - unlabeled branches: - main diff --git a/.github/workflows/create-dependabot-changelog.yml b/.github/workflows/create-dependabot-changelog.yml deleted file mode 100644 index 93683f80..00000000 --- a/.github/workflows/create-dependabot-changelog.yml +++ /dev/null @@ -1,37 +0,0 @@ -# Auto generate a changelog entry if the PR was opened by dependabot. ---- -name: Create Changelog for Dependabot - -on: - pull_request: - types: - - opened - -jobs: - create_changelog: - runs-on: ubuntu-latest - if: ${{ github.event.pull_request.user.login == 'dependabot[bot]'}} - steps: - - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - with: - ref: ${{ github.event.pull_request.head.ref }} - token: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} - - - name: Configure git - env: - TOKEN: ${{ secrets.HCP_SDK_PIPELINE_TOKEN }} - run: | - git config --global advice.detachedHead false - git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - git config user.name "github-actions" - git config user.email "hashicorp-cloud@hashicorp.com" - - name: Create Changelog - run: | - echo "This is a Dependabot PR. Creating changelog entry on its behalf." - touch .changelog/${{ github.event.pull_request.number }}.txt - printf '```release-note:improvement%s\n' >> .changelog/${{ github.event.pull_request.number }}.txt - printf '${{ github.event.pull_request.title }}%s\n' >> .changelog/${{ github.event.pull_request.number }}.txt - printf '```%s\n' >> .changelog/${{ github.event.pull_request.number }}.txt - git add . - git commit -m "Added changelog entry" - git push diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0d52e30..4dc1e2e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,13 @@ name: Test permissions: contents: write -on: [pull_request] +on: + pull_request: + push: + branches: + - main + paths-ignore: + - 'README.md' jobs: test: