Skip to content

Commit

Permalink
Merge pull request #191 from liangyuanpeng/update_ci
Browse files Browse the repository at this point in the history
chore: only trigger publish package workflow when mod files is change.
  • Loading branch information
Peefy authored Jul 29, 2024
2 parents 9c41010 + 45fc70c commit 9d77260
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- "**.mod"

env:
KPM_REG: "docker.io"
Expand All @@ -28,9 +30,9 @@ jobs:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version-file: go.mod

- name: Login
run: kcl registry login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker.io
Expand Down

0 comments on commit 9d77260

Please sign in to comment.