Skip to content

Commit

Permalink
fix(ci): updater checkout issue
Browse files Browse the repository at this point in the history
fix(ci): updater checkout issue

fix(ci): updater checkout issue
  • Loading branch information
greenhat616 committed Aug 29, 2024
1 parent 7be1809 commit 1fc4a05
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/deps-create-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,23 @@ on:
required: true
type: boolean
default: false
release_body:
description: "Release Body"
required: false
type: string

jobs:
updater:
name: Update Nightly Updater
name: Update Updater
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true # Fetch all tags

ref: ${{ github.ref }}
# blocked by https://github.com/actions/checkout/issues/1467
- name: Fetch git tags
run: git fetch --tags
- name: Install Node latest
uses: actions/setup-node@v4
with:
Expand All @@ -40,15 +46,15 @@ jobs:
- name: Pnpm install
run: pnpm i

- name: Update Updater
- name: Update Nightly Updater
if: ${{ inputs.nightly == true }}
run: pnpm updater:nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release updater file
- name: Update Stable Updater
if: ${{ inputs.nightly == false }}
run: pnpm updater
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BODY: ${{ github.event.release.body }}
RELEASE_BODY: ${{ inputs.release_body || github.event.release.body }}

0 comments on commit 1fc4a05

Please sign in to comment.