Skip to content

Commit

Permalink
Ahmad/Testlink url creation (#1492)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Feb 5, 2024
1 parent 905abca commit 337c150
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 337c150

Please sign in to comment.