UNPKG

klip-sdk

Version:

JavaScript SDK to interact with klip App2App requests

45 lines (44 loc) 1.45 kB
## hotfix/pr hotfix시 pr을 생성해주는 모듈이며, 사용 방법은 아래와 같음 `````` jobs: hotfix_dev_pr: runs-on: ubuntu-22.04 steps: - name: checkout the code uses: actions/checkout@v4 with: fetch-depth: 2 ssh-key: "${{ secrets.GX_PRIVATE_SSH_KEY }}" - name: check dummy commit id: check_dummy_commit run: | last_commit=$(git log -1 --pretty=%B) echo "Last commit message: $last_commit" if [[ $last_commit == *"automatically pr create"* ]]; then echo "gitflow=0" >> $GITHUB_OUTPUT else echo "gitflow=1" >> $GITHUB_OUTPUT fi - name: fetch actions repo uses: actions/checkout@v4 if: steps.check_dummy_commit.outputs.gitflow == '1' with: repository: "ground-x/gx-gh-actions" path: ./actions ssh-key: "${{ secrets.GX_SSH_PRIVATE_KEY }}" ref: "update/hotfix-pr" - name: generate hotfix pr branch to master uses: "./actions/common/deploy/hotfix/pr" if: steps.check_dummy_commit.outputs.gitflow == '1' with: base: feature/auto_pr_master dummycommit: yes pat: ${{ secrets.GH_PAT }} - name: generate hotfix pr branch to dev uses: "./actions/common/deploy/hotfix/pr" if: steps.check_dummy_commit.outputs.gitflow == '1' with: base: feature/auto_pr_dev pat: ${{ secrets.GH_PAT }} ``````