Skip to content

Commit

Permalink
[WIP] Add temporary test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed Nov 26, 2024
1 parent ac7fa66 commit f65ce64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [opened, edited, synchronize, reopened, closed]
# Only execute on the main branches (feature branches are excluded)
branches:
- changelog-action
- master
# Uyuni patches
- 'Uyuni-[0-9]+.[0-9]+'
Expand Down Expand Up @@ -68,6 +69,7 @@ jobs:
echo "See https://github.com/uyuni-project/uyuni/wiki/Contributing for a guide to writing changelogs."
exit 1
- name: Checkout the HEAD branch
id: checkout_head
if: "!contains(github.event.pull_request.body, '[x] No changelog needed')"
# Check out the PR HEAD in a subdirectory to read the diff for tests
uses: actions/checkout@v4
Expand All @@ -76,6 +78,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
path: .head
- name: Test changelog entries
if: steps.checkout_head.outcome == 'success'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BZ_TOKEN: ${{ secrets.BUGZILLA_TOKEN }}
Expand All @@ -88,7 +91,7 @@ jobs:
pip install python-bugzilla~=3.2.0
CHANGED_FILES=$(gh api --paginate repos/$GIT_REPO/pulls/$PR_NUM/files | jq -r '.[].filename')
python .github/workflows/changelogs/changelogs.py \
python .github/workflows/changelogs/changelogs.py -v \
--tracker-file $TRACKER_FILE --git-repo $GIT_REPO --uyuni-dir .head --pr-number $PR_NUM $CHANGED_FILES
# Warns the user if they merged the PR, but the changelog test failed
Expand Down

0 comments on commit f65ce64

Please sign in to comment.