mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 11:42:57 -04:00
Debugging attempt
This commit is contained in:
parent
0ee5930076
commit
9c7caf8346
1 changed files with 18 additions and 2 deletions
20
.github/workflows/auto-release.yml
vendored
20
.github/workflows/auto-release.yml
vendored
|
|
@ -98,12 +98,22 @@ jobs:
|
||||||
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
|
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
|
||||||
working-directory: ./local_kernel
|
working-directory: ./local_kernel
|
||||||
run: |
|
run: |
|
||||||
|
echo "=== Git log (last 5 commits) ==="
|
||||||
|
git log --oneline -5
|
||||||
|
echo "=== Git status ==="
|
||||||
|
git status
|
||||||
|
echo "=== Git diff --stat ==="
|
||||||
|
git diff --stat
|
||||||
git add .
|
git add .
|
||||||
|
echo "=== Staged changes ==="
|
||||||
|
git diff --cached --stat
|
||||||
if git diff --cached --quiet; then
|
if git diff --cached --quiet; then
|
||||||
echo "No changes to commit — source files and manifest already up to date."
|
echo "No new changes to commit — source files and manifest already up to date."
|
||||||
else
|
else
|
||||||
git commit -m '[AUTO][RELEASE]: Update version number in manifest.yml and source files'
|
git commit -m '[AUTO][RELEASE]: Update version number in manifest.yml and source files'
|
||||||
fi
|
fi
|
||||||
|
echo "=== Commits ahead of origin/main ==="
|
||||||
|
git log --oneline origin/main..HEAD
|
||||||
git push -u origin "release-prep-$VERSION_NUMBER"
|
git push -u origin "release-prep-$VERSION_NUMBER"
|
||||||
|
|
||||||
- name: Create pull request
|
- name: Create pull request
|
||||||
|
|
@ -193,5 +203,11 @@ jobs:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
working-directory: ./local_kernel
|
working-directory: ./local_kernel
|
||||||
run: |
|
run: |
|
||||||
git push origin --delete "release-prep-$VERSION_NUMBER" || true
|
# Only delete release-prep branch if the PR was already merged
|
||||||
|
PR_STATE=$(gh pr list --repo "${{ github.repository }}" --head "release-prep-$VERSION_NUMBER" --json state --jq '.[0].state' 2>/dev/null || echo "")
|
||||||
|
if [ "$PR_STATE" = "MERGED" ] || [ -z "$PR_STATE" ]; then
|
||||||
|
git push origin --delete "release-prep-$VERSION_NUMBER" || true
|
||||||
|
else
|
||||||
|
echo "Skipping release-prep branch deletion — PR is still open (state: $PR_STATE)"
|
||||||
|
fi
|
||||||
git push origin --delete "release-$VERSION_NUMBER" || true
|
git push origin --delete "release-$VERSION_NUMBER" || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue