mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
d6f9d0d387
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
# This action requires that any PR targeting the main branch should touch at
|
|
# least one CHANGELOG file. If a CHANGELOG entry is not required, add the "Skip
|
|
# Changelog" label to disable this action.
|
|
|
|
name: changelog
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, labeled, unlabeled]
|
|
branches:
|
|
- main
|
|
jobs:
|
|
changelog:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.pull_request.labels.*.name, 'Skip Changelog')"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Check for CHANGELOG changes
|
|
run: |
|
|
# Only the latest commit of the feature branch is available
|
|
# automatically. To diff with the base branch, we need to
|
|
# fetch that too (and we only need its latest commit).
|
|
git fetch origin ${{ github.base_ref }} --depth=1
|
|
if [[ $(git diff --name-only FETCH_HEAD | grep CHANGELOG) ]]
|
|
then
|
|
echo "A CHANGELOG was modified. Looks good!"
|
|
else
|
|
echo "No CHANGELOG was modified."
|
|
echo "Please add a CHANGELOG entry, or add the \"Skip Changelog\" label if not required."
|
|
false
|
|
fi
|