formatted workflows

هذا الالتزام موجود في:
Chris Ayers
2023-10-01 23:00:42 +00:00
الأصل d05871b323
التزام 7720922c15
19 ملفات معدلة مع 136 إضافات و143 حذوفات

عرض الملف

@@ -17,7 +17,8 @@ on:
paths:
- '**.js'
pull_request:
branches: [ main ]
branches: [main]
# schedule:
# * is a special character in YAML so you have to quote this string
# - cron: '30 5,17 * * *'

عرض الملف

@@ -6,9 +6,9 @@ name: 01 Basic Workflow with Multiple Jobs
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

عرض الملف

@@ -6,9 +6,9 @@ name: 02 Basic Dependencies
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -27,7 +27,7 @@ jobs:
job2:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: [ job1 ]
needs: [job1]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
@@ -36,7 +36,7 @@ jobs:
job3:
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: [ job2 ]
needs: [job2]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:

عرض الملف

@@ -6,9 +6,9 @@ name: 03 Steps
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -57,4 +57,3 @@ jobs:
- uses: actions/checkout@v4
# Reference a branch
- uses: actions/checkout@main

عرض الملف

@@ -6,9 +6,9 @@ name: 04 Variables
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

عرض الملف

@@ -6,9 +6,9 @@ name: 04 Variable Hierarchy
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

عرض الملف

@@ -6,9 +6,9 @@ name: 05 Conditionals
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

عرض الملف

@@ -7,9 +7,9 @@ name: 06 Expressions
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

عرض الملف

@@ -26,4 +26,3 @@ jobs:
uses: actions/hello-world-javascript-action@main
with:
who-to-greet: ${{ vars.GREET_NAME }}

عرض الملف

@@ -6,9 +6,9 @@ name: 08 Secrets
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -50,5 +50,3 @@ jobs:
run: echo "$Structured"
env:
Structured: ${{fromJson(secrets.Structured).clientSecret}}

عرض الملف

@@ -6,11 +6,11 @@ name: 09 Node.js Matrix
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [main]
paths:
- 'node-example/**'
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'node-example/**'
@@ -20,7 +20,6 @@ defaults:
jobs:
build-node:
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]

عرض الملف

@@ -3,12 +3,12 @@ name: 10 .NET
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [main]
paths:
- '!**'
- 'dotnet-sample/**'
pull_request:
branches: [ main ]
branches: [main]
paths:
- '!**'
- 'dotnet-sample/**'
@@ -23,7 +23,6 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest
steps:
@@ -103,4 +102,3 @@ jobs:
with:
app-name: ${{ steps.deploy.outputs.webAppName }} # Replace with your app name
package: 'webapp'

عرض الملف

@@ -3,11 +3,11 @@ name: Docker Image CI
on:
workflow_dispatch:
push:
branches: [ main ]
branches: [main]
paths:
- 'container-example/**'
pull_request:
branches: [ main ]
branches: [main]
paths:
- 'container-example/**'
@@ -16,7 +16,6 @@ defaults:
working-directory: containers-example
jobs:
build:
environment: docker
runs-on: ubuntu-latest

عرض الملف

@@ -3,7 +3,7 @@ name: Deploy marp site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -17,7 +17,7 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false
jobs:
@@ -30,7 +30,7 @@ jobs:
run: mkdir build && cp -R slides/img build/img && cp -R slides/themes build/themes
- name: Marp Build (README)
uses: docker://marpteam/marp-cli:v2.5.0
uses: docker://marpteam/marp-cli:latest
with:
args: --theme-set slides/themes -o build/index.html --html -- slides/Slides.md
env:

عرض الملف

@@ -8,9 +8,9 @@ name: Lint Code Base
on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
run-lint:
runs-on: ubuntu-latest