Skip to content

Commit

Permalink
Test workflow release
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanh Nguyen committed Nov 23, 2023
1 parent bff5a0e commit 1354de6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ on:

env:
BRANCH: 'release'
# GITHUB_REF: 'refs/heads/release'
GITHUB_REF: 'release'
NEED_REF: 'refs/heads/release'
TAG_PREFIX: 'v'

jobs:
ReleaseDryRun:
runs-on: ubuntu-latest
# if: |
# github.ref == '${GITHUB_REF}'
# github.ref == '${NEED_REF}'
outputs:
RESULT: ${{ steps.release_dry_run.outputs.result }}
VERSION: ${{ steps.release_dry_run.outputs.releaseVersion }}
Expand All @@ -27,13 +26,15 @@ jobs:
echo "BRANCH: ${BRANCH}"
echo "GITHUB_REF: ${GITHUB_REF}"
echo "TAG_PREFIX: ${TAG_PREFIX}"
echo "github.ref: ${{ github.ref }}"
- name: Dump 2
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
console.log(context.payload.workflow_run);
console.log(context.payload.workflow_run)
if (context.payload.workflow_run.event != 'pull_request') {
console.log(content.payload.pull_request)
}
- name: Check out code
uses: actions/checkout@v4
- name: Install Node
Expand Down

0 comments on commit 1354de6

Please sign in to comment.