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

fix(ci): updater checkout issue
  • Loading branch information
greenhat616 committed Aug 29, 2024
1 parent 7be1809 commit 2df11d1
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/deps-create-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,34 @@ on:
required: true
type: boolean
default: false

release_body:
description: "Release Body"
required: false
type: string
workflow_call:
inputs:
nightly:
description: "Nightly"
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 +49,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 2df11d1

Please sign in to comment.