From 2ce7093d2f6fdbab5c5eddf386c76298422e378e Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 13 Sep 2021 20:33:57 +0400 Subject: [PATCH 1/4] yml file --- .github/workflows/github-actions-demo.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..711d62e --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,17 @@ +name: GitHub Actions Demo +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v2 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." From d483e476cd686110c3ee614790e786de9526f68d Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 13 Sep 2021 20:44:21 +0400 Subject: [PATCH 2/4] txt file --- some.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 some.txt diff --git a/some.txt b/some.txt new file mode 100644 index 0000000..aa367ec --- /dev/null +++ b/some.txt @@ -0,0 +1 @@ +just txt From 2a0fb27cb88b5c5eecec12e00318da741f9151d1 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 13 Sep 2021 22:05:18 +0400 Subject: [PATCH 3/4] edited workflow --- .github/workflows/github-actions-demo.yml | 43 ++++++++++++++--------- 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 711d62e..3a6dd80 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,17 +1,28 @@ name: GitHub Actions Demo -on: [push] -jobs: - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." +# on: [push] +# jobs: +# Explore-GitHub-Actions: +# runs-on: ubuntu-latest +# steps: +# - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." +# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" +# - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." +# - name: Check out repository code +# uses: actions/checkout@v2 +# - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." +# - run: echo "🖥️ The workflow is now ready to test your code on the runner." +# - name: List files in the repository +# run: | +# ls ${{ github.workspace }} +# - run: echo "🍏 This job's status is ${{ job.status }}." + +on: + push: + branches: + - main + pull-request: + - main + page_build: + release: + types: + - created From 60959d64f3f488c4144b08667fc6ac3bceba3d8a Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 13 Sep 2021 22:06:42 +0400 Subject: [PATCH 4/4] edited workflow --- .github/workflows/github-actions-demo.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 3a6dd80..ca921f8 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,4 +1,4 @@ -name: GitHub Actions Demo +# name: GitHub Actions Demo # on: [push] # jobs: # Explore-GitHub-Actions: @@ -15,14 +15,17 @@ name: GitHub Actions Demo # run: | # ls ${{ github.workspace }} # - run: echo "🍏 This job's status is ${{ job.status }}." - on: + # Trigger the workflow on push or pull request, + # but only for the main branch push: branches: - main - pull-request: + pull_request: + branches: - main + # Also trigger on page_build, as well as release created events page_build: release: - types: + types: # This configuration does not affect the page_build event above - created