Skip to content

Commit b3a1785

Browse files
committed
ci: run snapshot bot on vcr branch and upload cassettes as artifacts
1 parent b5209a1 commit b3a1785

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/snapshots.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
- cron: "47 12 * * *"
66
workflow_dispatch:
7+
push:
8+
branches:
9+
- test/vcr
710
concurrency:
811
# Pushing new changes to a branch will cancel any in-progress CI runs
912
group: ${{ github.workflow }}-${{ github.ref }}
@@ -33,6 +36,11 @@ jobs:
3336
TEST_ACCEPTANCE: true
3437
TEST_VCR_MODE: recordonly
3538
UPDATE_SNAPS: always
39+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
40+
with:
41+
name: vcr-testdata-${{ github.run_number }}-${{ github.run_attempt }}
42+
path: cmd/osv-scanner/**/testdata/cassettes/*.yaml
43+
retention-days: 1
3644
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3745
with:
3846
token: ${{ secrets.PR_TOKEN_BOT }}

0 commit comments

Comments
 (0)