claude-switch-profile 1.4.19 → 1.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,9 @@ name: Update Homebrew Formula
3
3
  on:
4
4
  push:
5
5
  tags: ['v*']
6
+ workflow_run:
7
+ workflows: ["Release on push to main"]
8
+ types: [completed]
6
9
  workflow_dispatch:
7
10
  inputs:
8
11
  version:
@@ -11,18 +14,23 @@ on:
11
14
 
12
15
  jobs:
13
16
  bump-formula:
17
+ if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
14
18
  runs-on: ubuntu-latest
15
19
  permissions:
16
20
  contents: write # Cho phép GITHUB_TOKEN mặc định được ghi dữ liệu vào repo này
17
21
  steps:
18
22
  - name: Checkout Repository
19
23
  uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
20
26
 
21
27
  - name: Resolve Version
22
28
  id: version
23
29
  run: |
24
30
  if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
25
31
  VERSION="${{ github.event.inputs.version }}"
32
+ elif [ "${{ github.event_name }}" = "workflow_run" ]; then
33
+ VERSION=$(node -e "console.log(JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version)")
26
34
  else
27
35
  VERSION="${{ github.ref_name }}"
28
36
  VERSION="${VERSION#v}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-switch-profile",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "description": "CLI tool for managing multiple Claude Code profiles",
5
5
  "type": "module",
6
6
  "bin": {