updated workflows
هذا الالتزام موجود في:
@@ -18,9 +18,9 @@ on:
|
|||||||
- '**.js'
|
- '**.js'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
schedule:
|
# schedule:
|
||||||
# * is a special character in YAML so you have to quote this string
|
# * is a special character in YAML so you have to quote this string
|
||||||
- cron: '30 5,17 * * *'
|
# - cron: '30 5,17 * * *'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: 06 Expressions
|
name: 06 Expressions
|
||||||
|
|
||||||
|
# https://docs.github.com/en/actions/learn-github-actions/expressions
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
name: 07 Contexts
|
name: 07 Contexts
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
|
# https://docs.github.com/en/actions/learn-github-actions/contexts
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dump_contexts_to_log:
|
dump_contexts_to_log:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
27
.github/workflows/07b-vars.yml
مباع
Normal file
27
.github/workflows/07b-vars.yml
مباع
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
env:
|
||||||
|
# Setting an environment variable with the value of a configuration variable
|
||||||
|
env_var: ${{ vars.ENV_CONTEXT_VAR }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
display-variables:
|
||||||
|
name: ${{ vars.JOB_NAME }}
|
||||||
|
# You can use configuration variables with the `vars` context for dynamic jobs
|
||||||
|
if: ${{ vars.USE_VARIABLES == 'true' }}
|
||||||
|
runs-on: ${{ vars.RUNNER }}
|
||||||
|
environment: ${{ vars.ENVIRONMENT_STAGE }}
|
||||||
|
steps:
|
||||||
|
- name: Use variables
|
||||||
|
run: |
|
||||||
|
echo "repository variable : ${{ vars.REPOSITORY_VAR }}"
|
||||||
|
echo "organization variable : ${{ vars.ORGANIZATION_VAR }} (if I had one :) )"
|
||||||
|
echo "overridden variable : ${{ vars.OVERRIDE_VAR }}"
|
||||||
|
echo "variable from shell environment : $env_var"
|
||||||
|
|
||||||
|
- name: ${{ vars.HELLO_WORLD_STEP }}
|
||||||
|
if: ${{ vars.HELLO_WORLD_ENABLED == 'true' }}
|
||||||
|
uses: actions/hello-world-javascript-action@main
|
||||||
|
with:
|
||||||
|
who-to-greet: ${{ vars.GREET_NAME }}
|
||||||
|
|
المرجع في مشكلة جديدة
حظر مستخدم