Skip to content

Commit 70b9062

Browse files
authored
improvement: short sha
1 parent 9b99047 commit 70b9062

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10-
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
10+
if: github.ref_type == "branch"
1111
steps:
1212
- uses: actions/checkout@v2
1313

1414
- name: install dependencies
1515
run: yarn install
1616

1717
- name: set development version
18-
run: node version-bump.mjs dev-${{ github.sha }}
18+
run: node version-bump.mjs "dev-$(git rev-parse --short HEAD)"
1919

2020
- name: build
2121
run: yarn build

0 commit comments

Comments
 (0)