Fix Forgejo Actions compatibility issues
Some checks failed
Build apt-ostree Package / Build apt-ostree Package (push) Failing after 1m21s
Simple CI / Build and Test (push) Failing after 1s
Simple CI / Security Audit (push) Failing after 1s
Simple CI / Build Package (push) Failing after 1s
Test apt-ostree Build / Test apt-ostree Build (with existing libostree) (push) Failing after 1m16s
Simple CI / Final Status (push) Successful in 1s

- Replace forge.* context variables with shell commands to avoid compatibility issues
- Use 1755132473 for build IDs instead of forge.run_number
- Use git commands for commit and branch information instead of forge context
- Simplify workflow dependencies to avoid potential parsing issues
- Make workflows more robust and compatible with Forgejo Actions
This commit is contained in:
joe 2025-08-13 17:47:53 -07:00
parent 49d80f2962
commit b3f7e6f166
4 changed files with 16 additions and 16 deletions

View file

@ -412,9 +412,9 @@ jobs:
## Build Information
- **Build Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Build ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
- **Build ID**: $(date +%s)
- **Commit**: $(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")
- **Branch**: $(git branch --show-current 2>/dev/null || echo "Unknown")
## Build Status
- **Status**: ✅ SUCCESS

View file

@ -217,9 +217,9 @@ jobs:
## Build Information
- **Build Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Build ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
- **Build ID**: $(date +%s)
- **Commit**: $(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")
- **Branch**: $(git branch --show-current 2>/dev/null || echo "Unknown")
## Job Results
- **Build and Test**: ${{ needs.build-and-test.result }}

View file

@ -204,9 +204,9 @@ jobs:
## Test Information
- **Test Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Test ID**: ${{ forge.run_number }}
- **Commit**: ${{ forge.sha }}
- **Branch**: ${{ forge.ref_name }}
- **Test ID**: $(date +%s)
- **Commit**: $(git rev-parse --short HEAD 2>/dev/null || echo "Unknown")
- **Branch**: $(git branch --show-current 2>/dev/null || echo "Unknown")
## Test Status
- **Status**: ✅ SUCCESS

View file

@ -60,7 +60,7 @@ jobs:
run: |
# Get current date and workflow run ID
BUILD_DATE=$(date '+%Y-%m-%d %H:%M:%S UTC')
WORKFLOW_RUN_ID=${{ forge.run_number }}
WORKFLOW_RUN_ID=$(date +%s)
echo "Updating README with workflow run ID: $WORKFLOW_RUN_ID"
@ -72,18 +72,18 @@ jobs:
**Last Built**: $BUILD_DATE
**Version**: 0.1.0-1
**Target**: Debian Stable
**Build ID**: [$WORKFLOW_RUN_ID](https://git.raines.xyz/robojerk/apt-ostree/actions/runs/$WORKFLOW_RUN_ID)
**Build ID**: $WORKFLOW_RUN_ID
### Download Links
- **apt-ostree_0.1.0-1_amd64.deb** - [Download from Build $WORKFLOW_RUN_ID](https://git.raines.xyz/robojerk/apt-ostree/actions/runs/$WORKFLOW_RUN_ID)
- **apt-ostree-dbgsym_0.1.0-1_amd64.ddeb** - [Download from Build $WORKFLOW_RUN_ID](https://git.raines.xyz/robojerk/apt-ostree/actions/runs/$WORKFLOW_RUN_ID)
- **apt-ostree_0.1.0-1_amd64.deb** - Build $WORKFLOW_RUN_ID
- **apt-ostree-dbgsym_0.1.0-1_amd64.ddeb** - Build $WORKFLOW_RUN_ID
### Quick Installation
\`\`\`bash
# Download and install the package
# Visit: https://git.raines.xyz/robojerk/apt-ostree/actions/runs/$WORKFLOW_RUN_ID
# Build ID: $WORKFLOW_RUN_ID
# Download the .deb files and run:
sudo dpkg -i apt-ostree_0.1.0-1_amd64.deb
sudo apt-get install -f # Install any missing dependencies
@ -135,7 +135,7 @@ jobs:
# Add and commit changes
git add README.md
git commit -m "Update README with download links for build ${{ forge.run_number }}"
git commit -m "Update README with download links for build $(date +%s)"
# Push changes
git push origin main
@ -150,7 +150,7 @@ jobs:
## Update Information
- **Update Date**: $(date '+%Y-%m-%d %H:%M:%S UTC')
- **Triggered by**: Build workflow ${{ forge.run_number }}
- **Triggered by**: Build workflow $(date +%s)
- **Status**: ✅ SUCCESS
## Changes Made