Skip to content

Commit

Permalink
[fix] repo name (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBoWu authored Jan 18, 2024
1 parent b5b304c commit e770444
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
timestamp:
runs-on: ubuntu-latest
# Trigger the workflow only if the PR is from dev branch
# if: github.event.pull_request.head.repo.full_name == 'dev2'
# if: ${{ github.event.pull_request.head.repo.full_name == 'dev2' }}
steps:
- name: Generate timestamp
run: |
echo "TIMESTAMP=$(TZ='America/Los_Angeles' date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
echo github.event.pull_request.head.repo.full_name
echo ${{ github.event.pull_request.head.repo.full_name }}
- name: Print timestamp
run: |
Expand All @@ -32,15 +32,15 @@ jobs:
runs-on: ubuntu-latest
needs: timestamp
# Trigger the workflow only if the PR is from dev branch
if: github.event.pull_request.head.repo.full_name == 'dev2'
if: ${{ github.event.pull_request.head.repo.full_name == 'dev2' }}
outputs:
MAIN_VERSION: ${{ steps.parse_package_json.outputs.MAIN_VERSION }}
steps:
# checkout the main branch
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: main2
ref: main

- name: Parse package.json
id: parse_package_json
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
needs: timestamp
# Trigger the workflow only if the PR is from dev branch
if: github.event.pull_request.head.repo.full_name == 'dev2'
if: ${{ github.event.pull_request.head.repo.full_name == 'dev2' }}
outputs:
DEV_VERSION: ${{ steps.parse_package_json.outputs.DEV_VERSION }}
steps:
Expand Down

0 comments on commit e770444

Please sign in to comment.