Skip to content

Instantly share code, notes, and snippets.

View gat786's full-sized avatar
๐Ÿ 
Working from home

Ganesh Tiwari gat786

๐Ÿ 
Working from home
View GitHub Profile
name: Outputs example
on:
workflow_dispatch:
jobs:
create_output:
outputs:
NAME: ${{ steps.creator.outputs.NAME }}
runs-on: ubuntu-latest
name: Outputs example
on:
workflow_dispatch:
jobs:
create_output:
runs-on: ubuntu-latest
steps:
- name: Create an output
name: Outputs example
on:
workflow_dispatch:
jobs:
create_output:
outputs:
NAME: ${{ steps.creator.outputs.NAME }}
runs-on: ubuntu-latest
- name: Set Some variables
run: |
echo "FAVOURITE_GAME=CRICKET" >> $GITHUB_ENV
echo "FAVOURITE_PASSTIME=READING" >> $GITHUB_ENV
echo "FAVOURITE_FRUIT=MANGO" >> $GITHUB_ENV
- name: Access variables
run: |
echo "sample - $SAMPLE"
echo "fav fruit - $FAVOURITE_FRUIT" # Available to read across all the jobs in the same job
name: Environment variables action
on:
workflow_dispatch:
push:
branches:
- main
env:
NAME: Ganesh
name: Multi-Stage (Jobs) GH Action
on:
workflow_dispatch:
push:
branches:
- main
jobs:
linux_build:
name: Environment variables action
on:
workflow_dispatch:
push:
branches:
- main
env:
SAMPLE: sample-environment-variable
# metadata
name: Demo Action
# trigger
on:
workflow_dispatch:
push:
branches:
- main
@gat786
gat786 / BasicsChainlink...HelloWorld.sol
Created October 30, 2023 03:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.20+commit.a1b79de6.js&optimize=false&runs=200&gist=
from dotenv import load_dotenv
import logging
load_dotenv()
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s [%(levelname)s] %(filename)s:%(lineno)d - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)