From 185d2ea46bfb620dee4a9134711a56fa36406ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8D=8E=E6=A1=A5?= Date: Thu, 21 Dec 2023 14:42:01 +0800 Subject: [PATCH] chore: github workflow --- .github/workflows/deploy-automatically.yml | 10 +++++----- .github/workflows/release-desktop-automatically.yml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-automatically.yml b/.github/workflows/deploy-automatically.yml index c85fafd5c9..c62a71c856 100644 --- a/.github/workflows/deploy-automatically.yml +++ b/.github/workflows/deploy-automatically.yml @@ -1,4 +1,4 @@ -name: Dispatch Deploy by tag +name: Deploy by tag or schedule on: push: @@ -8,18 +8,18 @@ on: - cron: '0 7 * * *' jobs: - dispatch-deploy-by-tag: + dispatch-deploy: runs-on: ubuntu-latest - name: Setup deploy environment + name: Setup Deploy steps: - name: dispatch deploy by tag - if: ${{ github.event == 'push' }} + if: ${{ github.event_name == 'push' }} uses: benc-uk/workflow-dispatch@v1 with: workflow: deploy.yml inputs: '{ "flavor": "canary" }' - name: dispatch deploy by schedule - if: ${{ github.event == 'schedule' }} + if: ${{ github.event_name == 'schedule' }} uses: benc-uk/workflow-dispatch@v1 with: workflow: deploy.yml diff --git a/.github/workflows/release-desktop-automatically.yml b/.github/workflows/release-desktop-automatically.yml index d123685e15..9532d111f9 100644 --- a/.github/workflows/release-desktop-automatically.yml +++ b/.github/workflows/release-desktop-automatically.yml @@ -1,4 +1,4 @@ -name: Dispatch Release Desktop by tag +name: Release Desktop by tag or schedule on: push: @@ -8,18 +8,18 @@ on: - cron: '0 7 * * *' jobs: - dispatch-desktop-app-by-tag: + dispatch-release-desktop: runs-on: ubuntu-latest name: Setup Release Desktop steps: - name: dispatch desktop release by tag - if: ${{ github.event == 'push' }} + if: ${{ github.event_name == 'push' }} uses: benc-uk/workflow-dispatch@v1 with: workflow: release-desktop.yml inputs: '{ "build-type": "canary", "is-draft": true, "is-pre-release": true }' - name: dispatch desktop release by schedule - if: ${{ github.event == 'schedule' }} + if: ${{ github.event_name == 'schedule' }} uses: benc-uk/workflow-dispatch@v1 with: workflow: release-desktop.yml