Skip to content

Commit 337c150

Browse files
Ahmad/Testlink url creation (#1492)
* chore: setup preview link generation * chore: remove unused workflows * chore: add PAT * chore: remove deriv-app deploy * new changes * generate link * testing test link * test link * test link * test link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * testing link * add concurrency * replaxing names * adding deriv-app flutter chart name if same branch exist * Update .github/workflows/generate_preview_link.yml --------- Co-authored-by: balakrishna-binary <[email protected]> Co-authored-by: balakrishna-deriv <[email protected]>
1 parent 905abca commit 337c150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/generate_preview_link.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
alternate_ref: master
3939

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

4950
- name: Custom flutter-chart
51+
id: flutter_chart
5052
uses: 'binary-com/SmartCharts/.github/actions/checkout@master'
5153
with:
5254
repository: ${{github.event.pull_request.user.login}}/flutter-chart
@@ -113,7 +115,7 @@ jobs:
113115
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TEST_LINKS_API_TOKEN }}
114116
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_TEST_LINKS_ACCOUNT_ID }}
115117
project_name: 'smartcharts-preview'
116-
branch_name: 'pr-${{github.event.number}}'
118+
branch_name: pr-${{github.event.number}}${{ steps.deriv_app.outputs.ref_exists == true && '-dtra' || ''}}${{ steps.flutter_chart.outputs.ref_exists == true && '-flutt' || ''}}
117119
output_dir: deriv-app/packages/core/dist
118120

119121
- name: 'Generate preview link comment'

0 commit comments

Comments
 (0)