Skip to content

update-ui

update-ui #6

Workflow file for this run

name: Update digma-ui releases
on:
repository_dispatch:
types: [update-ui]
jobs:
update-ui:
name: Update digma-ui releases
runs-on: ubuntu-latest
env:
BRANCH_NAME: update-ui-${{ github.event.client_payload.release }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.UPDATE_UI_PAT }}
- uses: denoland/setup-deno@v2
with:
deno-version-file: ./.github/scripts/update-ui/.dvmrc
- name: Update ui_dependencies.json
run:
|
echo '${{ toJson(github.event.client_payload) }}' > ./ui_dependencies_diff.json
cd .github/scripts/update-ui
deno task start
- name: Commit, push changes and create PR
env:
GH_TOKEN: ${{ secrets.UPDATE_UI_PAT }}
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b ${{ env.BRANCH_NAME }}
git add ui_dependencies.json
git commit -m "Update digma-ui releases"
git push origin ${{ env.BRANCH_NAME }}
gh pr create -f -B main