File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ jobs:
15
15
- name : Get latest rsync tag
16
16
id : latest_tag
17
17
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::{}"
19
19
20
20
- name : Update Dockerfile with latest tag
21
21
run : |
22
22
sed -i -E "s/RSYNC_TAG=[0-9\.]+/RSYNC_TAG=${{ steps.latest_tag.outputs.latest_tag }}/g" Dockerfile
23
23
24
24
- name : Create Pull Request for tag update
25
- uses : peter-evans/create-pull-request@v3
25
+ uses : peter-evans/create-pull-request@v5
26
26
with :
27
27
token : ${{ secrets.GITHUB_TOKEN }}
28
28
commit-message : " Update rsync tag in Dockerfile"
29
29
title : " Update rsync tag in Dockerfile"
30
30
body : " This PR updates the rsync tag in the Dockerfile to the latest tagged version."
31
31
branch : " update-rsync-tag"
32
32
base : " master"
33
- path : " . "
33
+ add-paths : " Dockerfile "
34
34
labels : " automated-update,rsync"
You can’t perform that action at this time.
0 commit comments