Update android.yml

This commit is contained in:
Sujal 2025-02-19 18:00:59 +05:30 committed by GitHub
parent b2302020e4
commit a45f09167b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ on: [push, pull_request, workflow_dispatch]
permissions:
pull-requests: write
contents: read
actions: read
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
@ -114,10 +115,12 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
try {
if (!process.env.GITHUB_TOKEN) {
throw new Error('GITHUB_TOKEN is not set. Please configure repository secrets.');
const token = process.env.GITHUB_TOKEN;
if (!token) {
throw new Error('GITHUB_TOKEN is not set. Please check workflow permissions.');
}
const { data: { artifacts } } = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,