Skip to content

Commit 24400fd

Browse files
authored
Merge pull request #282 from Homebrew/fix-update-database
2 parents ec3b4f2 + b7534d3 commit 24400fd

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/update-database.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,13 @@ jobs:
2626
id: set-up-homebrew
2727
uses: Homebrew/actions/setup-homebrew@main
2828

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-
3729
- name: Install oras for interacting with GitHub Packages
3830
run: brew install oras
3931

4032
- name: Pull executables.txt from GitHub Packages
4133
run: oras pull ghcr.io/homebrew/command-not-found/executables:latest
4234

4335
- name: Update database
44-
working-directory: repo
4536
env:
4637
MAX_DOWNLOADS: ${{ github.event.inputs.max-downloads }}
4738
run: |
@@ -57,7 +48,6 @@ jobs:
5748
brew which-update --update-existing --install-missing $MAX_DOWNLOADS_ARGS executables.txt --summary-file=$GITHUB_STEP_SUMMARY
5849
5950
- name: Output database stats
60-
working-directory: repo
6151
run: brew which-update --stats executables.txt
6252

6353
- name: Log in to GitHub Packages
@@ -79,6 +69,12 @@ jobs:
7969
oras pull ghcr.io/homebrew/command-not-found/executables:latest
8070
shasum --algorithm=256 --check executables.txt.sha256
8171
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+
8278
delete-old-versions:
8379
needs: update-database
8480
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)