Skip to content

Commit e90b042

Browse files
feat: fix invalid tag (#79)
fix: ERROR: invalid tag "casbin/casbin-server:": invalid reference format in GitHub Actions
1 parent 6f722cd commit e90b042

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/default.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
if: github.repository == 'casbin/casbin-server' && github.event_name == 'push'
3333
needs: [ coveralls ]
3434
steps:
35-
- uses: actions/checkout@v2
35+
- name: Checkout
36+
uses: actions/checkout@v2
3637

3738
- name: Run semantic-release
3839
run: |
@@ -41,7 +42,15 @@ jobs:
4142
env:
4243
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4344

44-
- name: Decide Should_Push Or Not
45+
- name: Fetch Previous version
46+
id: get-previous-tag
47+
uses: actions-ecosystem/action-get-latest-tag@v1.6.0
48+
49+
- name: Fetch Current version
50+
id: get-current-tag
51+
uses: actions-ecosystem/action-get-latest-tag@v1.6.0
52+
53+
- name: Decide Should Push Or Not
4554
id: should_push
4655
run: |
4756
old_version=${{steps.get-previous-tag.outputs.tag}}
@@ -74,4 +83,4 @@ jobs:
7483
target: STANDARD
7584
platforms: linux/amd64,linux/arm64
7685
push: true
77-
tags: casbin/casbin-server:${{steps.get-current-tag.outputs.tag }},casbin/casbin-server:latest
86+
tags: casbin/casbin-server:${{steps.get-current-tag.outputs.tag }},casbin/casbin-server:latest

0 commit comments

Comments
 (0)