Github Actions #4 Default ENV & Context

Onur BOLATOĞLU
Dec 12, 2022
name: Output information
on: workflow_dispatch
jobs:
info:
runs-on: ubuntu-latest
steps:
- name: Output Github Context
run: echo "${{ toJSON(github) }}"
- name: Output Context 2
run: echo "${{ github.repository }}"
- name: Output Context 3
run: echo "${{ github.run_id }}"
- name: Output ENV 1
run: echo "$GITHUB_EVENT_NAME"

Yukarıdaki örnekte, Github Actions ‘da değişkenleri ve context kullanarak çıktı alabiliyoruz.

${{ <context> }} # Context kullanımı
$MY_VARIABLE # Variable kullanımı

İş akışlarınızda(workflow) çeşitli amaçlar için kullanabileceğiniz birçok bağlam(context) vardır; Aşağıdaki linkten inceleyebilirsiniz.

Bir çok değişken mevcuttur; Aşağıdaki linkten inceleyebilirsiniz.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response