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