File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,13 @@ jobs:
26
26
id : set-up-homebrew
27
27
uses : Homebrew/actions/setup-homebrew@main
28
28
29
- - name : Check out repository
30
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31
- with :
32
- fetch-depth : 0
33
- ref : main
34
- path : repo
35
- persist-credentials : false
36
-
37
29
- name : Install oras for interacting with GitHub Packages
38
30
run : brew install oras
39
31
40
32
- name : Pull executables.txt from GitHub Packages
41
33
run : oras pull ghcr.io/homebrew/command-not-found/executables:latest
42
34
43
35
- name : Update database
44
- working-directory : repo
45
36
env :
46
37
MAX_DOWNLOADS : ${{ github.event.inputs.max-downloads }}
47
38
run : |
57
48
brew which-update --update-existing --install-missing $MAX_DOWNLOADS_ARGS executables.txt --summary-file=$GITHUB_STEP_SUMMARY
58
49
59
50
- name : Output database stats
60
- working-directory : repo
61
51
run : brew which-update --stats executables.txt
62
52
63
53
- name : Log in to GitHub Packages
79
69
oras pull ghcr.io/homebrew/command-not-found/executables:latest
80
70
shasum --algorithm=256 --check executables.txt.sha256
81
71
72
+ - name : Upload database artifact
73
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
74
+ with :
75
+ name : executables-database
76
+ path : executables.txt
77
+
82
78
delete-old-versions :
83
79
needs : update-database
84
80
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments