Skip to content

Commit

Permalink
adding deriv-app flutter chart name if same branch exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadtaimoor-deriv committed Feb 5, 2024
1 parent eacb9fa commit 8d4484a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/generate_preview_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
alternate_ref: master

- name: Checkout deriv-app
id: deriv_app
uses: 'binary-com/SmartCharts/.github/actions/checkout@master'
with:
repository: ${{github.event.pull_request.user.login}}/deriv-app
Expand All @@ -47,6 +48,7 @@ jobs:
alternate_ref: master

- name: Custom flutter-chart
id: flutter_chart
uses: 'binary-com/SmartCharts/.github/actions/checkout@master'
with:
repository: ${{github.event.pull_request.user.login}}/flutter-chart
Expand Down Expand Up @@ -113,7 +115,7 @@ jobs:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }}
project_name: 'smartcharts-preview'
branch_name: 'pr-${{github.event.number}}'
branch_name: pr-${{github.event.number}}${{ steps.deriv_app.outputs.ref_exists == true && '-dtra'}}${{ steps.flutter_chart.outputs.ref_exists == true && '-flutt'}}
output_dir: deriv-app/packages/core/dist

- name: 'Generate preview link comment'
Expand Down

0 comments on commit 8d4484a

Please sign in to comment.