.gitea/workflows/test-release.yml aktualisiert
This commit is contained in:
parent
51ad4f64a5
commit
ee4567c5d0
@ -4,7 +4,7 @@ on:
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches:
|
||||
- Testing
|
||||
- testing
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
@ -13,6 +13,8 @@ jobs:
|
||||
# Repository auschecken
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Um sicherzustellen, dass alle Branches und Tags abgerufen werden
|
||||
|
||||
# Java 17 installieren
|
||||
- name: Set up Java 17
|
||||
@ -42,8 +44,13 @@ jobs:
|
||||
- name: Get PR Commit Messages
|
||||
id: pr_commits
|
||||
run: |
|
||||
# PR-Commits abrufen
|
||||
PR_COMMITS=$(git log --format=%s origin/${{ github.event.pull_request.base.ref }}..${{ github.sha }} --oneline)
|
||||
# Hole alle Remote-Branches
|
||||
git fetch --prune --unshallow
|
||||
|
||||
# PR-Commits abrufen: Der Basis-Branch der PR ist `github.event.pull_request.base.ref`
|
||||
PR_COMMITS=$(git log --format=%s ${{ github.event.pull_request.base.ref }}..${{ github.sha }} --oneline)
|
||||
|
||||
# Ausgabe in Umgebungsvariable speichern
|
||||
echo "PR_COMMITS=$PR_COMMITS" >> $GITHUB_ENV
|
||||
echo "$PR_COMMITS"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user