diff --git a/.github/workflows/android-release.yml b/.github/workflows/android-release.yml index 5278084..4bc6b3a 100644 --- a/.github/workflows/android-release.yml +++ b/.github/workflows/android-release.yml @@ -185,7 +185,7 @@ jobs: TAG="${{ steps.requested.outputs.tag }}" CODE=$(python3 scripts/release_tool.py metadata | python3 -c 'import json,sys; print(json.load(sys.stdin)["versionCode"])') TRACK=$(python3 scripts/release_tool.py metadata | python3 -c 'import json,sys; print(json.load(sys.stdin)["playTrack"])') - AAB=$(find release-artifacts -maxdepth 1 -name 'voice-inbox-*.aab' | head -n1) + AAB=$(find "${{ github.workspace }}/release-artifacts" -maxdepth 1 -name 'voice-inbox-*.aab' | head -n1) bundle exec fastlane android upload_release \ aab:"$AAB" \ version_code:"$CODE" \ diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 7460856..7cd8b83 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -53,7 +53,15 @@ jobs: env: GH_TOKEN: ${{ github.token }} PR_NUMBER: ${{ github.event.pull_request.number }} - run: gh pr checks "$PR_NUMBER" --required + run: | + if ! output=$(gh pr checks "$PR_NUMBER" --required 2>&1); then + if printf '%s' "$output" | grep -q "no required checks reported"; then + echo "No required checks are configured; skipping required-check gate." + else + printf '%s\n' "$output" + exit 1 + fi + fi - name: Resolve merged release identity id: identity