Skip to content

Commit

Permalink
Merge pull request newrelic#16220 from newrelic/liz/workflow-forever
Browse files Browse the repository at this point in the history
Try github token for api call
  • Loading branch information
LizBaker authored Feb 20, 2024
2 parents 4ea772e + 746dd75 commit 926f979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/trigger-i18n-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Check for modified files & merge
env:
OPENSOURCE_BOT_TOKEN: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
SOURCE_REF: ${{ github.ref }}
run: |
URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${{ github.event.pull_request.number }}/files"
Expand Down
4 changes: 2 additions & 2 deletions scripts/actions/trigger-i18n-merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const main = async () => {
const options = getCommandLineOptions();
const locale = options.locale || null;
const url = options.url || null;
const octokit = github.getOctokit(process.env.OPENSOURCE_BOT_TOKEN);
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
const repo = github.context.repo;

if (locale) {
Expand All @@ -65,7 +65,7 @@ const main = async () => {
if (url) {
const prFileData = await fetchPaginatedGHResults(
url,
process.env.OPENSOURCE_BOT_TOKEN
process.env.GITHUB_TOKEN
);

const sitesToBuild = getSitesToBuild(prFileData);
Expand Down

0 comments on commit 926f979

Please sign in to comment.