GitHub Actions
- Retrive git branch
git rev-parse --abbrev-ref HEAD
master
- Github Action Cache:
name: Cache dependency
uses: actions/cache@v3
with:
path: ~/.npm
- Git client
- Git cherry-pick
- Remove large files from a git commit
git log -n 2
git rebase -i HEAD~2
use squash (escape to squash it in front of commit id) and wq
- Github actions basics
- Github dispatch (manual input)
- Upload artifact: upload-artifact
GH Actions training
-Section 4|57 More on the "push" event
- single event
name: test
on: push
on: push
jobs:
deploy:
- multiple events
name: test
on: [push, workflow_dispatch]
jobs:
deploy:
-Section 4|59 Introducing events types & filters
echo "Apple Pie"| git hash-object --stdin
hash
Coding Short: Test Your Github Actions Locally with Act







Comentarii
Trimiteți un comentariu