You've already forked prometheus-fail2ban-exporter-charts
							
							chore(ci): use actions/checkout to fetch tags
This commit is contained in:
		| @@ -2,8 +2,10 @@ name: Release | |||||||
|  |  | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     tags: |     branches: | ||||||
|     - "**" |     - master | ||||||
|  |     # tags: | ||||||
|  |     # - "**" | ||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   publish-chart: |   publish-chart: | ||||||
| @@ -17,10 +19,14 @@ jobs: | |||||||
|           apk add git npm yq |           apk add git npm yq | ||||||
|  |  | ||||||
|       - uses: actions/checkout@v4 |       - uses: actions/checkout@v4 | ||||||
|  |         with: | ||||||
|  |           fetch-depth: 0 | ||||||
|  |  | ||||||
|  |  | ||||||
|       - name: Add Artifacthub.io annotations |       - name: Add Artifacthub.io annotations | ||||||
|         run: | |         run: | | ||||||
|           git fetch --unshallow --tags --force |           git tag | ||||||
|  |           # git fetch --unshallow --tags --force | ||||||
|  |  | ||||||
|           NEW_TAG="$(git describe --abbrev=0)" |           NEW_TAG="$(git describe --abbrev=0)" | ||||||
|           OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" |           OLD_TAG="$(git describe --abbrev=0 --tags "$(git rev-list --tags --skip=1 --max-count=1)")" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user