Skip to content

Commit

Permalink
Debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Dec 18, 2024
1 parent ad1edfe commit a0e8a0d
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release Every Other Monday
on:
workflow_dispatch:
inputs:
VERSION_NUMBER:
type: string
# Run action at 16:15 PM on Monday (UTC)
# schedule:
# @TODO: the schedule below is weekly. Do byweekly check.
Expand All @@ -27,32 +30,34 @@ jobs:
repositories: |
veda-ui
veda-config
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Use Node.js ${{ env.NODE }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE }}
- run: yarn
- name: Release through Git
id: git-release
run: yarn release --ci --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# token: ${{ steps.generate-token.outputs.token }}
# - name: git config
# run: |
# git config user.name "${GITHUB_ACTOR}"
# git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# - name: Use Node.js ${{ env.NODE }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE }}
# - run: yarn
# - name: Release through Git
# id: git-release
# run: yarn release --ci --verbose
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
preview-build:
runs-on: ubuntu-latest
needs: "release"
steps:
- name: Check output
run: echo ${{needs.release.outputs.APP_TOKEN}}
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ needs.release.outputs.APP_TOKEN }}
repository: nasa-impact/veda-config
event-type: update-version
client-payload: '{"ref": "${{ github.ref }}", "VERSION_NUMBER": "${{ needs.release.outputs.VERSION_NUMBER }}"}'
client-payload: '{"ref": "${{ github.ref }}", "VERSION_NUMBER": "${{ needs.release.outputs.VERSION_NUMBER || inputs.VERSION_NUMBER }}"}'

0 comments on commit a0e8a0d

Please sign in to comment.