Compare commits

..

No commits in common. "c99d802184677291204d1b1a1e5a292ec84badc5" and "bddb48ba9abd9f31250f4ba2493c730433e55e90" have entirely different histories.

3 changed files with 9 additions and 41 deletions

View File

@ -14,50 +14,23 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Debug Environment
run: |
echo "CI Environment Details:"
echo "GITHUB_ACTIONS=${GITHUB_ACTIONS:-not set}"
echo "GITEA_ACTIONS=${GITEA_ACTIONS:-not set}"
echo "GITEA_REPOSITORY=${GITEA_REPOSITORY:-not set}"
echo "RUNNER_NAME=${RUNNER_NAME:-not set}"
- name: Determine CI Provider - name: Determine CI Provider
id: provider id: provider
shell: bash
run: | run: |
# Initialize provider as unknown if [[ "$GITHUB_ACTIONS" == "true" ]]; then
PROVIDER="unknown" echo "provider=github" >> $GITHUB_OUTPUT
elif [[ "$GITEA_ACTIONS" == "true" ]]; then
# Check for Gitea specific environment first echo "provider=gitea" >> $GITHUB_OUTPUT
if [ -n "${GITEA_ACTIONS}" ] || [ -n "${GITEA_REPOSITORY}" ] || [[ "${RUNNER_NAME}" == *"gitea"* ]]; then else
PROVIDER="gitea" echo "provider=unknown" >> $GITHUB_OUTPUT
# Then check for GitHub
elif [ "${GITHUB_ACTIONS}" = "true" ]; then
PROVIDER="github"
fi
echo "Detected provider: ${PROVIDER}"
echo "provider=${PROVIDER}" >> "${GITHUB_OUTPUT}"
verify-provider:
needs: route
runs-on: ubuntu-latest
steps:
- name: Echo detected provider
run: |
echo "Detected CI Provider: ${{ needs.route.outputs.provider }}"
if [ "${{ needs.route.outputs.provider }}" = "unknown" ]; then
echo "::error::Failed to detect CI provider!"
exit 1
fi fi
github-release: github-release:
needs: [route, verify-provider] needs: route
if: needs.route.outputs.provider == 'github' if: needs.route.outputs.provider == 'github'
uses: ./.github/workflows/providers/github-release.yml uses: ./.github/workflows/providers/github-release.yml
gitea-release: gitea-release:
needs: [route, verify-provider] needs: route
if: needs.route.outputs.provider == 'gitea' if: needs.route.outputs.provider == 'gitea'
uses: ./.github/workflows/providers/gitea-release.yml uses: ./.github/workflows/providers/gitea-release.yml

View File

@ -1,10 +1,5 @@
# Changelog # Changelog
## [1.2.27] - 2025-02-19
### Added
- enhance CI workflows with provider detection and update version to 1.2.27
## [1.2.26] - 2025-02-19 ## [1.2.26] - 2025-02-19
### Added ### Added
- update release workflows for Gitea and GitHub, increment version to 1.2.26 - update release workflows for Gitea and GitHub, increment version to 1.2.26

View File

@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.2.27" version = "1.2.26"
[env:esp32dev] [env:esp32dev]
platform = espressif32 platform = espressif32