diff --git a/.github/workflows/update-best-of-list.yml b/.github/workflows/update-best-of-list.yml index 755cd88..88fa5c2 100644 --- a/.github/workflows/update-best-of-list.yml +++ b/.github/workflows/update-best-of-list.yml @@ -24,19 +24,19 @@ jobs: - if: ${{ ! (env.VERSION != null && env.VERSION != '') }} name: set-version-via-date run: echo "VERSION=$(date '+%Y.%m.%d')" >> $GITHUB_ENV - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: check-version-tag shell: bash run: | git fetch --tags --force git show-ref --tags --verify --quiet -- "refs/tags/${{ env.VERSION }}" && echo "VERSION=$(date '+%Y.%m.%d-%H.%M')" >> $GITHUB_ENV || exit 0 - name: create-update-branch - uses: peterjgrainger/action-create-branch@v2.0.1 + uses: peterjgrainger/action-create-branch@v3.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: branch: "${{ env.BRANCH_PREFIX }}${{ env.VERSION }}" - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 ref: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }} @@ -49,7 +49,7 @@ jobs: libraries_key: ${{ secrets.LIBRARIES_KEY }} github_key: ${{ secrets.GITHUB_TOKEN }} - name: push-update - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: branch: ${{ env.BRANCH_PREFIX }}${{ env.VERSION }} commit_user_name: best-of update