From 3facf6377f472ce2b7100303e6764fa83f138483 Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Thu, 5 May 2022 17:42:07 +0200 Subject: [PATCH] update --- .github/workflows/github-actions-change-variable.yml | 10 +++++++++- ...{github-actions.yml => github-actions-template.yml} | 10 +++++++++- .../{github-actions-writefile.yml => write_file.yml} | 0 3 files changed, 18 insertions(+), 2 deletions(-) rename .github/workflows/{github-actions.yml => github-actions-template.yml} (76%) rename .github/workflows/{github-actions-writefile.yml => write_file.yml} (100%) diff --git a/.github/workflows/github-actions-change-variable.yml b/.github/workflows/github-actions-change-variable.yml index f469a2a..4ae135a 100644 --- a/.github/workflows/github-actions-change-variable.yml +++ b/.github/workflows/github-actions-change-variable.yml @@ -1,6 +1,14 @@ # .github/workflows/github-actions-change-variable.yml -on: [push] name: Variable Substitution +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ docs ] + pull_request: + branches: [ docs ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: build: diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions-template.yml similarity index 76% rename from .github/workflows/github-actions.yml rename to .github/workflows/github-actions-template.yml index 51b2330..23fb7bc 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions-template.yml @@ -1,5 +1,13 @@ name: GitHub Actions Demo -on: [push] +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ docs ] + pull_request: + branches: [ docs ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest diff --git a/.github/workflows/github-actions-writefile.yml b/.github/workflows/write_file.yml similarity index 100% rename from .github/workflows/github-actions-writefile.yml rename to .github/workflows/write_file.yml