This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Outputs example | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| create_output: | |
| outputs: | |
| NAME: ${{ steps.creator.outputs.NAME }} | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Outputs example | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| create_output: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create an output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Outputs example | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| create_output: | |
| outputs: | |
| NAME: ${{ steps.creator.outputs.NAME }} | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Environment variables action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| NAME: Ganesh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Multi-Stage (Jobs) GH Action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| linux_build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Environment variables action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| SAMPLE: sample-environment-variable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # metadata | |
| name: Demo Action | |
| # trigger | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity ^0.8.20; | |
| contract HelloWorld { | |
| string public greet = "Hello World!"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' | |
| ) |
NewerOlder