Skip to content

Commit 0e79c57

Browse files
authored
Filter out rsync prerelease and set change file path
1 parent 6263de5 commit 0e79c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/rsync-docker-bump.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ jobs:
1515
- name: Get latest rsync tag
1616
id: latest_tag
1717
run: |
18-
curl --silent "https://api.github.com/repos/WayneD/rsync/tags" | jq -r '.[0].name' | xargs -I {} echo "::set-output name=latest_tag::{}"
18+
curl --silent "https://api.github.com/repos/WayneD/rsync/tags" | jq -r '.[].name' | grep -m1 -v pre | xargs -I {} echo "::set-output name=latest_tag::{}"
1919
2020
- name: Update Dockerfile with latest tag
2121
run: |
2222
sed -i -E "s/RSYNC_TAG=[0-9\.]+/RSYNC_TAG=${{ steps.latest_tag.outputs.latest_tag }}/g" Dockerfile
2323
2424
- name: Create Pull Request for tag update
25-
uses: peter-evans/create-pull-request@v3
25+
uses: peter-evans/create-pull-request@v5
2626
with:
2727
token: ${{ secrets.GITHUB_TOKEN }}
2828
commit-message: "Update rsync tag in Dockerfile"
2929
title: "Update rsync tag in Dockerfile"
3030
body: "This PR updates the rsync tag in the Dockerfile to the latest tagged version."
3131
branch: "update-rsync-tag"
3232
base: "master"
33-
path: "."
33+
add-paths: "Dockerfile"
3434
labels: "automated-update,rsync"

0 commit comments

Comments
 (0)