Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Sep 18, 2024
1 parent f94bd43 commit 0f59e52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/generate-bundle-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ jobs:
run: |
node scripts/generate-bundle-url.js > url.txt
cat url.txt
- name: Update PR with CDN URL
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const url = fs.readFileSync('url.txt', 'utf8').trim();
const pr_number = process.env.GITHUB_REF.split('/').pop();
const octokit = require('@actions/github').getOctokit(process.env.GITHUB_TOKEN);
const { getOctokit } = require('@actions/github');
const octokit = getOctokit(process.env.GITHUB_TOKEN);
await octokit.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 0f59e52

Please sign in to comment.