File tree Expand file tree Collapse file tree 1 file changed +9
-23
lines changed Expand file tree Collapse file tree 1 file changed +9
-23
lines changed Original file line number Diff line number Diff line change 1
- name : break-pacman-upload-lease
2
- run-name : Break pacman upload lease
1
+ name : Break Pacman Upload Lease
3
2
4
3
on :
5
4
workflow_dispatch :
6
5
7
6
jobs :
8
7
break-lease :
9
- if : github.event.repository.owner.login == 'git-for-windows'
8
+ if : github.event.repository.fork == false
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Clone build-extra
13
- shell : bash
14
- run : git clone --depth 1 --single-branch -b main https://github.com/git-for-windows/build-extra /usr/src/build-extra
15
-
16
- - name : Prepare home directory
17
- if : env.AZURE_BLOBS_TOKEN != ''
18
- env :
19
- AZURE_BLOBS_TOKEN : ${{secrets.AZURE_BLOBS_TOKEN}}
20
- shell : bash
21
- run : |
22
- echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
23
- echo "$AZURE_BLOBS_TOKEN" >"$HOME"/.azure-blobs-token
24
-
12
+ uses : actions/checkout@v4
13
+ with :
14
+ repository : git-for-windows/build-extra
25
15
- name : Break the lease
26
- if : env.AZURE_BLOBS_TOKEN != ''
16
+ if : env.azure_blobs_token != ''
27
17
shell : bash
28
18
env :
29
- AZURE_BLOBS_TOKEN : ${{secrets.AZURE_BLOBS_TOKEN}}
30
- run : /usr/src/build-extra/pacman-helper.sh break_lock
31
-
32
- - name : Clean up temporary files
33
- if : always()
34
- shell : bash
19
+ azure_blobs_token : ${{secrets.AZURE_BLOBS_TOKEN}}
35
20
run : |
36
- { rm -rf "$HOME" || echo "Gracefully leaving files undeleted" >&2; }
21
+ echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
22
+ ./pacman-helper.sh break_lock
You can’t perform that action at this time.
0 commit comments