Skip to content

Commit 1c2dc91

Browse files
authored
Merge pull request #711 from github/djdefi-workflow-lint-2
Workflow lint fixes part 2
2 parents 70cb0b0 + d9619a1 commit 1c2dc91

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/backuprestore.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
build:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
repository: github/backup-utils-private
3434
ref: ${{ inputs.ref }}
@@ -51,13 +51,13 @@ jobs:
5151
run: docker load -i backup-utils.tar
5252
- uses: actions/checkout@v3
5353
- name: Create backup directory
54-
run: mkdir $HOME/ghe-backup-data
54+
run: mkdir "$HOME"/ghe-backup-data
5555
- name: set up ssh SSH_KEY
56-
run: echo -e "${SSH_KEY}\n" > $HOME/backup
56+
run: echo -e "${SSH_KEY}\n" > "$HOME"/backup
5757
- name: set up ssh key permissions
58-
run: chmod 0600 $HOME/backup
58+
run: chmod 0600 "$HOME"/backup
5959
- name: change version
60-
run: echo "3.8.0" > $HOME/version
60+
run: echo "3.8.0" > "$HOME"/version
6161
- name: Perform backup
6262
run: |
6363
docker run -e "GHE_HOSTNAME=${{ inputs.hostname }}" \
@@ -70,7 +70,7 @@ jobs:
7070
--rm \
7171
backup-utils ghe-backup
7272
- name: Prepare for restore
73-
run: ssh -p122 -i $HOME/backup -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -s"
73+
run: ssh -p122 -i "$HOME"/backup -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -s"
7474
- name: Restore data to instance
7575
run: |
7676
docker run -e "GHE_HOSTNAME=${{ inputs.hostname }}" \
@@ -83,5 +83,5 @@ jobs:
8383
--rm \
8484
backup-utils ghe-restore ${{ inputs.hostname }}
8585
- name: Reset maintenance mode after restore
86-
run: ssh -p122 -i $HOME/backup -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -u"
86+
run: ssh -p122 -i "$HOME"/backup -o StrictHostKeyChecking=no admin@${{ inputs.hostname }} "ghe-maintenance -u"
8787

.github/workflows/restore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
build:
5252
runs-on: ubuntu-latest
5353
steps:
54-
- uses: actions/checkout@v3
54+
- uses: actions/checkout@v4
5555
with:
5656
repository: github/backup-utils-private
5757
ref: ${{ inputs.ref }}
@@ -69,7 +69,7 @@ jobs:
6969
needs: build
7070
runs-on:
7171
group: larger-hosted-public-runners
72-
labels: ubuntu-latest-xl
72+
labels: ubuntu-latest
7373
env:
7474
SSH_KEY: ${{ secrets.BACKUP_SSH_KEY }}
7575
steps:

0 commit comments

Comments
 (0)