File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Output edit-repin.gif
2+
3+ Set Shell "zsh"
4+ Set FontFamily "JetBrainsMono Nerd Font"
5+ Set FontSize 14
6+ Set Width 1200
7+ Set Height 700
8+ Set Framerate 24
9+ Set PlaybackSpeed 1.5
10+ Set TypingSpeed 50 ms
11+ Set Theme "GitHub Dark"
12+
13+ Type "echo '# Simulate a Dependabot PR: bump checkout v4.2.0 -> v5'"
14+ Enter
15+ Sleep 1 s
16+
17+ Type "grep checkout demo/workflows-upgrade/ci.yml"
18+ Enter
19+ Sleep 2 s
20+
21+ Type "echo '# Edit the ref (like Dependabot would)'"
22+ Enter
23+ Sleep 1 s
24+
25+ Type "sed -i '' 's/checkout@v4.2.0/checkout@v5/g' demo/workflows-upgrade/ci.yml"
26+ Enter
27+ Sleep 1 s
28+
29+ Type "echo '# Remove stale lockfile so check can re-resolve'"
30+ Enter
31+ Sleep 1 s
32+
33+ Type "sed -i '' '/# Automatically generated/,\$d' demo/workflows-upgrade/ci.yml"
34+ Enter
35+ Sleep 1 s
36+
37+ Type "echo '# Re-pin with check'"
38+ Enter
39+ Sleep 1 s
40+
41+ Type "gh actions-pin check --no-interactive demo/workflows-upgrade/ci.yml"
42+ Enter
43+ Sleep 12 s
44+
45+ Type "echo '# New lockfile written'"
46+ Enter
47+ Sleep 1 s
48+
49+ Type "tail -5 demo/workflows-upgrade/ci.yml"
50+ Enter
51+ Sleep 3 s
Original file line number Diff line number Diff line change 88 demo/vhs/check-autofix.tape
99 demo/vhs/ci-failure.tape
1010 demo/vhs/upgrade.tape
11+ demo/vhs/upgrade-version.tape
12+ demo/vhs/edit-repin.tape
1113 demo/vhs/tamper-warning.tape
1214 demo/vhs/sha-as-ref.tape
1315 demo/vhs/unreleased-commit.tape
Original file line number Diff line number Diff line change 1+ Output upgrade-version.gif
2+
3+ Set Shell "zsh"
4+ Set FontFamily "JetBrainsMono Nerd Font"
5+ Set FontSize 14
6+ Set Width 1200
7+ Set Height 700
8+ Set Framerate 24
9+ Set PlaybackSpeed 1.5
10+ Set TypingSpeed 50 ms
11+ Set Theme "GitHub Dark"
12+
13+ Type "echo '# Currently pinned to actions/checkout@v4.2.0'"
14+ Enter
15+ Sleep 1 s
16+
17+ Type "grep -E 'uses:| -' demo/workflows-upgrade/ci.yml | grep -i checkout"
18+ Enter
19+ Sleep 2 s
20+
21+ Type "echo '# Upgrade to a specific version (v5), not latest'"
22+ Enter
23+ Sleep 1 s
24+
25+ Type "gh actions-pin upgrade --action actions/checkout --version v5 demo/workflows-upgrade/ci.yml"
26+ Enter
27+ Sleep 12 s
28+
29+ Type "echo '# Verify the pinned version'"
30+ Enter
31+ Sleep 1 s
32+
33+ Type "grep -E 'uses:| -' demo/workflows-upgrade/ci.yml | grep -i checkout"
34+ Enter
35+ Sleep 3 s
You can’t perform that action at this time.
0 commit comments