Skip to content

Commit

Permalink
Lets give er a go
Browse files Browse the repository at this point in the history
  • Loading branch information
GiantRobots committed Jul 3, 2024
1 parent 41a98ea commit 5b5e1ee
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/update-ui-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ on:
push:
branches:
- main
secrets:
TEMPORAL_CICD_APP_ID:
required: true
TEMPORAL_CICD_PRIVATE_KEY:
required: true
- GithubAppToken

jobs:
sync:
Expand Down Expand Up @@ -39,8 +35,6 @@ jobs:
app_id: ${{ secrets.TEMPORAL_CICD_APP_ID }}
private_key: ${{ secrets.TEMPORAL_CICD_PRIVATE_KEY }}
permissions:
contents: read
pull_requests: write

- name: Checkout UI Server
uses: actions/checkout@v4
Expand All @@ -53,13 +47,13 @@ jobs:
- name: Build UI
run: pnpm build:server

- name: Sync UI Server
run: |
rm -rf ui-server/*
rm -rf server/proto/dependencies/api
cp -r server/* ui-server
cd ui-server
git config --local user.name 'Temporal Data (cicd)'
git config --local user.email '[email protected]'
git add .
git commit -m "Update UI Server" && git push || echo "No changes to commit"
# - name: Sync UI Server
# run: |
# rm -rf ui-server/*
# rm -rf server/proto/dependencies/api
# cp -r server/* ui-server
# cd ui-server
# git config --local user.name 'Temporal Data (cicd)'
# git config --local user.email '[email protected]'
# git add .
# git commit -m "Update UI Server" && git push || echo "No changes to commit"

0 comments on commit 5b5e1ee

Please sign in to comment.