Skip to content

Commit 94631db

Browse files
committed
Separate scan workflow for fast iteration
Co-authored-by: Isaac
1 parent c61158c commit 94631db

File tree

2 files changed

+55
-18
lines changed

2 files changed

+55
-18
lines changed

.github/workflows/release-snapshot.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,3 @@ jobs:
9898
files: |-
9999
dist/databricks_cli_*.zip
100100
dist/databricks_cli_*.tar.gz
101-
102-
scan:
103-
needs: goreleaser
104-
runs-on: ubuntu-latest
105-
106-
strategy:
107-
matrix:
108-
artifact:
109-
- cli_darwin_snapshot
110-
- cli_linux_snapshot
111-
- cli_windows_snapshot
112-
113-
steps:
114-
- name: Scan artifact
115-
uses: databricks/gh-action-scan@3599451f16bfeaecaf4fc7dc0853bcd6d89e9ea1
116-
with:
117-
download-artifact: ${{ matrix.artifact }}
118-
artifact-name: ${{ matrix.artifact }}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: scan-snapshot
2+
3+
on:
4+
push:
5+
branches:
6+
- "eval-*"
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
download:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Download snapshot release assets
16+
env:
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
gh release download snapshot --repo ${{ github.repository }} --pattern '*.tar.gz' --dir dist
20+
21+
- name: Upload macOS binaries
22+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
23+
with:
24+
name: cli_darwin_snapshot
25+
path: dist/*darwin*
26+
27+
- name: Upload Linux binaries
28+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
29+
with:
30+
name: cli_linux_snapshot
31+
path: dist/*linux*
32+
33+
- name: Upload Windows binaries
34+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
35+
with:
36+
name: cli_windows_snapshot
37+
path: dist/*windows*
38+
39+
scan:
40+
needs: download
41+
runs-on: ubuntu-latest
42+
43+
strategy:
44+
matrix:
45+
artifact:
46+
- cli_darwin_snapshot
47+
- cli_linux_snapshot
48+
- cli_windows_snapshot
49+
50+
steps:
51+
- name: Scan artifact
52+
uses: databricks/gh-action-scan@3599451f16bfeaecaf4fc7dc0853bcd6d89e9ea1
53+
with:
54+
download-artifact: ${{ matrix.artifact }}
55+
artifact-name: ${{ matrix.artifact }}

0 commit comments

Comments
 (0)