Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sujal-Gupta-SG authored Feb 19, 2025
1 parent 4f6822e commit 73dc292
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ jobs:
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
script: |
try {
if (!process.env.GITHUB_TOKEN) {
if (!process.env.MY_GITHUB_TOKEN) {
console.log('❌ GITHUB_TOKEN is not available. Please check repository secrets.');
core.setFailed('GITHUB_TOKEN is missing.');
return;
} else {
console.log(`✅ GITHUB_TOKEN is present: ****${process.env.GITHUB_TOKEN.slice(-4)}`);
console.log(`✅ GITHUB_TOKEN is present: ****${process.env.MY_GITHUB_TOKEN.slice(-4)}`);
}
const { data: { artifacts } } = await github.rest.actions.listWorkflowRunArtifacts({
Expand Down

0 comments on commit 73dc292

Please sign in to comment.