Skip to content

Commit

Permalink
FR-14304 - Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemzif1 committed Nov 26, 2023
1 parent 10cf80e commit 8a71b4e
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,33 +132,33 @@ jobs:
description: 'Dispatching E2E tests...',
});
- name: Wait until NPM registry finished indexing the new version
uses: actions/github-script@v6
with:
script: |
const checkingVersion = '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}';
const checkNpmVersions = require('./scripts/wait-for-npm-indexing.js');
await checkNpmVersions(github, ['@frontegg/react'], checkingVersion);
uses: actions/github-script@v6
with:
script: |
const checkingVersion = '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}';
const checkNpmVersions = require('./scripts/wait-for-npm-indexing.js');
await checkNpmVersions(github, ['@frontegg/react'], checkingVersion);
- name: "Trigger Oauth Service Pipeline Workflow"
uses: actions/github-script@v5
env:
PR_VERSION: '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}'
with:
github-token : ${{ secrets.DISPATCH_WORKFLOWS_TOKEN }}
script: |
const fe_react_version= process.env.PR_VERSION;
const owner = context.payload.repository.organization
const oauthServiceRepo = 'oauth-service'
const workflow_id = 'update-react-dependency.yaml'
uses: actions/github-script@v5
env:
PR_VERSION: '${{ steps.publish_pre_release_version.outputs.LIB_VERSION }}-alpha.${{ github.run_id }}'
with:
github-token : ${{ secrets.DISPATCH_WORKFLOWS_TOKEN }}
script: |
const fe_react_version= process.env.PR_VERSION;
const owner = context.payload.repository.organization
const oauthServiceRepo = 'oauth-service'
const workflow_id = 'update-react-dependency.yaml'
const data = await github.rest.actions.createWorkflowDispatch({
owner,
repo: oauthServiceRepo,
workflow_id,
ref: 'master',
inputs: {
fe_react_version,
}
});
const data = await github.rest.actions.createWorkflowDispatch({
owner,
repo: oauthServiceRepo,
workflow_id,
ref: 'master',
inputs: {
fe_react_version,
}
});
- name: "Trigger E2E tests"
uses: actions/github-script@v5
env:
Expand Down

0 comments on commit 8a71b4e

Please sign in to comment.