Skip to content

Commit bc85ca2

Browse files
committed
Update best-of update workflow to 0.4.6
1 parent 7ba5138 commit bc85ca2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/update-best-of-list.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Based on https://github.com/ml-tooling/best-of-update-action/blob/v0.4.2/workflows/update-best-of-list.yml
1+
# Based on https://github.com/ml-tooling/best-of-update-action/blob/v0.4.6/workflows/update-best-of-list.yml
22
name: update-best-of-list
33

44
on:
@@ -24,6 +24,12 @@ jobs:
2424
- if: ${{ ! (env.VERSION != null && env.VERSION != '') }}
2525
name: set-version-via-date
2626
run: echo "VERSION=$(date '+%Y.%m.%d')" >> $GITHUB_ENV
27+
- uses: actions/checkout@v2
28+
- name: check-version-tag
29+
shell: bash
30+
run: |
31+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
32+
git show-ref --tags --verify --quiet -- "refs/tags/${{ env.VERSION }}" && echo "VERSION=$(date '+%Y.%m.%d-%H.%M')" >> $GITHUB_ENV || echo "Version tag has not been created yet."
2733
- name: create-update-branch
2834
uses: peterjgrainger/action-create-branch@v2.0.1
2935
env:
@@ -38,7 +44,7 @@ jobs:
3844
env:
3945
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4046
- name: update-best-of-list
41-
uses: ml-tooling/best-of-update-action@v0.4.2
47+
uses: ml-tooling/best-of-update-action@v0.4.6
4248
with:
4349
libraries_key: ${{ secrets.LIBRARIES_KEY }}
4450
github_key: ${{ secrets.GITHUB_TOKEN }}
@@ -71,4 +77,4 @@ jobs:
7177
release_name: "Update: ${{ env.VERSION }}"
7278
body_path: "latest_changes.md"
7379
draft: true
74-
prerelease: false
80+
prerelease: false

0 commit comments

Comments
 (0)