File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Update Rsync Tag in Dockerfile
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
schedule :
5
6
- cron : ' 0 0 * * *' # Runs daily at 00:00
6
7
@@ -14,21 +15,20 @@ jobs:
14
15
15
16
- name : Get latest rsync tag
16
17
id : latest_tag
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
+ run : curl --silent "https://api.github.com/repos/WayneD/rsync/tags" | jq -r '.[].name' | grep -m1 -v pre | xargs -I {} echo "name=latest_tag::{}" >> "$GITHUB_OUTPUT"
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"
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ GHE_NUM_SNAPSHOTS=10
26
26
# performed before the next full backup is created.
27
27
# For example, if `GHE_INCREMENTAL_BACKUP_MAX` is set to 14, backup-utils will
28
28
# run 1 full backup and then 13 incremental backups before performing another full backup on the next cycle.
29
- #GHE_INCREMENTAL_BACKUP_MAX =14
29
+ #GHE_INCREMENTAL_MAX_BACKUPS =14
30
30
31
31
# If GHE_SKIP_CHECKS is set to true (or if --skip-checks is used with ghe-backup) then ghe-host-check
32
32
# disk space validation and software version checks on the backup-host will be disabled.
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ setup_remote_metadata () {
87
87
mkdir -p " $GHE_REMOTE_DATA_DIR " " $GHE_REMOTE_DATA_USER_DIR "
88
88
mkdir -p " $GHE_REMOTE_DATA_USER_DIR /common"
89
89
mkdir -p " $GHE_REMOTE_ROOT_DIR /etc/github"
90
+ # Create fake remote repositories dir
91
+ mkdir -p " $GHE_REMOTE_DATA_USER_DIR /repositories"
90
92
}
91
93
setup_remote_metadata
92
94
You can’t perform that action at this time.
0 commit comments