Skip to content

Commit

Permalink
chore: gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Dec 13, 2024
1 parent adfab84 commit b29a9a7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy-telegram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
environment: ${{ env.APP_ENV }}

- name: Restart service on Kosarev.Space
uses: fjogeleit/http-request-action@v1
uses: kosarev-space/deploy-action@0.0.1
with:
url: "https://kosarev.space/api/service/${{ secrets.TELEGRAM_GAME_SERVICE_ID }}/restart"
method: 'POST'
bearerToken: '${{ secrets.BEARER_TOKEN }}'
timeout: 15000
auth_token: ${{ secrets.BEARER_TOKEN }}
service_id: ${{ secrets.TELEGRAM_GAME_SERVICE_ID }}

- name: Update deployment status (success)
if: success()
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
environment: ${{ env.APP_ENV }}

- name: Restart service on Kosarev.Space
uses: fjogeleit/http-request-action@v1
with:
url: "https://kosarev.space/api/service/${{ secrets.SERVICE_ID }}/restart"
method: 'POST'
bearerToken: '${{ secrets.BEARER_TOKEN }}'
timeout: 15000
uses: kosarev-space/[email protected]
with:
auth_token: ${{ secrets.BEARER_TOKEN }}
service_id: ${{ secrets.SERVICE_ID }}

- name: Update deployment status (success)
if: success()
Expand Down
8 changes: 8 additions & 0 deletions apps/website/app/pages/(games)/wagon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<div class="wagon-card">
<NumberFlow class="distance" :value="game?.wagon ? Math.floor(game.wagon.x / 50) : 0" /> м
</div>

<div class="wagon-card hidden">
{{ game?.children.length }}
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -105,4 +109,8 @@ onMounted(async () => {
.distance {
font-size: 48px;
}
.hidden {
display: none;
}
</style>

0 comments on commit b29a9a7

Please sign in to comment.