Browse Categories All Posts
Categories
K
Kai
Post Timeline
This PC
Timeline
Recycle Bin
github workflow

github workflow

GITHUB WORKFLOW  KEYS

on:

events that will trigger the workflow.  This event will only trigger a workflow run if the workflow file exists on the default branch.

https://docs.github.com/en/webhooks/webhook-events-and-payloads

Webhook event payload : types

workflow_dispatch : manual run

push

repository_dispatch

branch_protection_rule : [created,edited, deleted], GITHUB_SHA(last commit) ,GITHUB_REF(default branch)

check_run : [created,rerequested,completed,requested_action]

check_suite : [completed] 

create,delete,

Runs your workflow when someone creates a Git reference (Git branch or tag) in the workflow's repository 

deployment

deployment_status

discussion

fork

gollum : wiki page edits 

issue_comment,label : [created,edited, deleted]

issues : [opened  edited  deleted  transferred  pinned unpinned  closed  reopened assigned unassigned  labeled  unlabeled  locked  unlocked milestoned demilestoned  typed  untyped] 

  page_build

 pull_request

pull_request_review_comment

workflow_run : [ completed  requested  in_progress] 

workflow_call
 

 

schedule:  

posix cron item, minute,hour,day-month,month,day-week(sunday:-0:saturday:-6)

*=any value ,=separator, -=range of value /=step value i.e x/y=step of y added to x

https://crontab.guru/

 

condition

    if: github.repository == 'octo-org/octo-repo-prod'

 

 

runs-on

https://docs.github.com/en/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job

16 gb ram 14gb ssd, 4 cpu, 

ubuntu-latest, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-24.04-arm, ubuntu-22.04-arm

windows-latest, windows-2025[Public preview], windows-2022, windows-2019 

macos-13

macos-latest, macos-14, macos-15  = m1 chip , 3 cpu, 7 gb ram

 

Container

image: 

env:

ports:

volumes:

options: docter container options: https://docs.docker.com/reference/cli/docker/container/create/#options

no --network and --entrypoint options

steps;

credentials:

 

if used only container without option use like container:

 

 uses: docker://alpine:3.8

 uses: docker://ghcr.io/OWNER/IMAGE_NAME

 

jobs:

 it need either runs-on or uses , each of job will execute on a runner machine and run a series of one or more steps.

 

steps:

Each step can either run a script that you define or run an action, which is a reusable extension that can simplify your workflow.

 

steps must be alist and yaml syntax for list is - 

 

 

 

 

 

download in colab to drive

download in colab to drive

from google.colab import drive

drive.mount('/content/drive')


here:

COOKIE="your_cookie_here"
USER_AGENT="your_user_agent_here"
REFERER="your_referer_here"
URL="your_download_url_here"
OUTPUT_PATH="/content/filename"

# Use the placeholders in the wget command
wget --header="Cookie: $COOKIE" \
     --header="User-Agent: $USER_AGENT" \
     --header="Referer: $REFERER" \
     --max-redirect=10 --trust-server-names -O $OUTPUT_PATH "$URL"

eg:

 USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"

or 

>> console.log(navigator.userAgent);
Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0

 

REFERER="https://www.google.com"

get coookie form browser in dev console document.cookie

direct link from  pausing download 


 

for ubuntu iso into drive

!wget -O /content/drive/MyDrive/ubuntu-24.10.iso https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso 



debian to lmde

debian to lmde

 deb [trusted=yes] http://packages.linuxmint.com faye main upstream import backport 



http://packages.linuxmint.com/


main upstream import backport 


http://packages.linuxmint.com/search.php?release=faye&section=any&keyword=

 

http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/ 

 

http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2022.06.21_all.deb


lmde has only cinamon as of lmde 6 

lmde5=elsie

lmde6=faye

cinnamon is in backport 


https://github.com/linuxmint

 

 

 

 

https://naive-many.com/bk3.VG0EPH3EpevCb/mMVUJlZgDD0-3yMZj_Ai3IM-TrUizVLGT/cVyIMuD/cNx/NSTccq