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
jobs:
    deploy:

- multiple events

name: test
on: [push, workflow_dispatch]
jobs:
   deploy:

-Section 4|59 Introducing events types & filters


- Section 5|72 Using Job Outputs In Other Jobs

- Git hash and unzip blob
echo "Apple Pie"| git hash-object --stdin 
hash



git cat-file hash -t (type)
git cat-file hash -p (unzip)



Coding Short: Test Your Github Actions Locally with Act





Comentarii

Postări populare de pe acest blog

Politics Meme

CS Lewis