diff --git a/.github/workflows/auto-bump-cli-version.yml b/.github/workflows/auto-bump-cli-version.yml index bb280c2..7aad047 100644 --- a/.github/workflows/auto-bump-cli-version.yml +++ b/.github/workflows/auto-bump-cli-version.yml @@ -51,7 +51,7 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add cli/reins/package.json package.json - git commit -m "chore: bump cli version to v${NEW_VERSION} [skip ci]" || exit 0 + git commit -m "chore: bump cli version to v${NEW_VERSION}" || exit 0 if [[ ! "$BRANCH_NAME" =~ ^[A-Za-z0-9._/-]+$ ]]; then echo "Invalid head ref: $BRANCH_NAME" exit 1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d59d5b4..39803b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,7 @@ name: Publish on: push: branches: [master] + workflow_dispatch: jobs: test: @@ -35,6 +36,7 @@ jobs: run: bun src/index.ts audit ../.. publish: + if: github.ref == 'refs/heads/master' needs: test runs-on: ubuntu-latest permissions: