From 6754ffc2fd3ca25ac7af69e4f9bc5adf44991e17 Mon Sep 17 00:00:00 2001 From: Neil McAlister Date: Sun, 25 Aug 2024 20:39:49 +0100 Subject: [PATCH] splitter --- .github/workflows/blank.yml | 4 +-- .github/workflows/github-actions-demo.yml | 32 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 01502b1..24bf0a9 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -5,8 +5,8 @@ name: CI # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] + #push: + # branches: [ "main" ] pull_request: branches: [ "main" ] diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 15a61d6..6050cf6 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -16,3 +16,35 @@ jobs: run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." + + Explore-GitHub-Actions-Part2: + 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@v4 + - 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 }}." + + Explore-GitHub-Actions-Part2-to-Part3: + needs: Explore-GitHub-Actions-Part2 + 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@v4 + - 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 }}." + \ No newline at end of file