Skip to content

Commit 4c951f3

Browse files
authored
Merge pull request #178 from github/dhadka/actions-permissions
Set permissions on actions files before restore
2 parents c60f08f + 3f0a499 commit 4c951f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- name: Install Dependencies (Linux)
1616
run: |
1717
sudo apt-get update -y
18+
sudo apt-get purge parallel
1819
sudo apt-get install -y devscripts debhelper moreutils fakeroot jq pigz
1920
wget "https://storage.googleapis.com/shellcheck/shellcheck-v0.7.0.linux.x86_64.tar.xz"
2021
tar --xz -xvf "shellcheck-v0.7.0.linux.x86_64.tar.xz"

share/github-backup-utils/ghe-restore-actions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ ghe_remote_version_required "$host"
3737
# Transfer all Actions data from the snapshot to the user data directory using rsync.
3838
ghe_verbose "* Transferring actions files to $host ..."
3939

40-
echo "sudo mkdir -p $GHE_REMOTE_DATA_USER_DIR/actions" |
41-
ghe-ssh -p $port $host /bin/bash
40+
ghe-ssh -p "$port" "$host" -- sudo mkdir -p "$GHE_REMOTE_DATA_USER_DIR/actions"
41+
ghe-ssh -p "$port" "$host" -- sudo chown -R actions:actions "$GHE_REMOTE_DATA_USER_DIR/actions"
4242

4343
ghe-rsync -arvHR --delete \
4444
-e "ghe-ssh -p $port" \

0 commit comments

Comments
 (0)