From 69a1839570812b6489fff7da2d385d88aa039299 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 17:12:02 +0200 Subject: [PATCH 01/15] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43fc9143..a3e79297 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Github-Examples -A repo containing GitHub for programmatic examples +A repo containing GitHub for programmatic examples. + From c870bca06874cb77163d366a2860c96c20c75004 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 17:21:37 +0200 Subject: [PATCH 02/15] Create hello_someone.yml workflow --- .github/workflows/hello_someone.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/hello_someone.yml diff --git a/.github/workflows/hello_someone.yml b/.github/workflows/hello_someone.yml new file mode 100644 index 00000000..11b2e355 --- /dev/null +++ b/.github/workflows/hello_someone.yml @@ -0,0 +1,32 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + # The data type of the input + type: string + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ inputs.name }}" From 167d6676a59482f6665689616a13ef7aec8da19c Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 17:22:06 +0200 Subject: [PATCH 03/15] Rename hello_someone.yml to hello-someone.yml --- .github/workflows/{hello_someone.yml => hello-someone.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{hello_someone.yml => hello-someone.yml} (100%) diff --git a/.github/workflows/hello_someone.yml b/.github/workflows/hello-someone.yml similarity index 100% rename from .github/workflows/hello_someone.yml rename to .github/workflows/hello-someone.yml From a591bebbe95758fd4293e721a44e00093b12ac4f Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 17:27:03 +0200 Subject: [PATCH 04/15] Update custom-action.yml --- .github/workflows/custom-action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/custom-action.yml b/.github/workflows/custom-action.yml index 7a87b53f..c9b1ddbd 100644 --- a/.github/workflows/custom-action.yml +++ b/.github/workflows/custom-action.yml @@ -1,3 +1,5 @@ +name: Hello World + on: [push] jobs: @@ -12,4 +14,4 @@ jobs: name: 'Brown' # Use the output from the `hello` step - name: Get the Output - run: echo "The time was ${{ steps.hello.outputs.greeting }}" \ No newline at end of file + run: echo "The time was ${{ steps.hello.outputs.greeting }}" From 5ad7779829eae5e5c7f513902b13973d4584230f Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:25:12 +0200 Subject: [PATCH 05/15] Just the very first hello world --- .github/workflows/simple-hello-world.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/simple-hello-world.yml diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml new file mode 100644 index 00000000..9278d9de --- /dev/null +++ b/.github/workflows/simple-hello-world.yml @@ -0,0 +1,9 @@ +name: Just a static Hello World!!! + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + id: first-step + name: The only single step + run: echo "Hello GitHub Actions World!!!" \ No newline at end of file From 6b5fab55fd8f42c14f3ced0e010a9036371eaafe Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:33:06 +0200 Subject: [PATCH 06/15] Just a fix for the very first hello world --- .github/workflows/simple-hello-world.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 9278d9de..627d973c 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -4,6 +4,6 @@ jobs: hello_world: runs-on: ubuntu-latest steps: + - name: The only single step id: first-step - name: The only single step run: echo "Hello GitHub Actions World!!!" \ No newline at end of file From c06d7702d8ca1d7b6c6d5ae54d3ee7629f7acfcc Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:43:49 +0200 Subject: [PATCH 07/15] Another fix for the hello world --- .github/workflows/simple-hello-world.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 627d973c..8b9bd127 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -1,5 +1,9 @@ name: Just a static Hello World!!! +on: + schedule: + cron: * * * * * + jobs: hello_world: runs-on: ubuntu-latest From 70fd8c408e3decb575da7c4a46a6da87e64ab684 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:47:51 +0200 Subject: [PATCH 08/15] One more fix for the hello world --- .github/workflows/simple-hello-world.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 8b9bd127..0b938e02 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -2,7 +2,7 @@ name: Just a static Hello World!!! on: schedule: - cron: * * * * * + - cron: '* * * * *' jobs: hello_world: From f3dce637d64ee0324f1f39bcd20913a72618e210 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:51:26 +0200 Subject: [PATCH 09/15] [10] one more fix --- .github/workflows/simple-hello-world.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 0b938e02..37d20b98 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -2,7 +2,7 @@ name: Just a static Hello World!!! on: schedule: - - cron: '* * * * *' + - cron: '*/2 * * * *' jobs: hello_world: From 56ab8e654f0c2864b6f54e131b89fe688bf76616 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:53:40 +0200 Subject: [PATCH 10/15] [11] One more fix --- .github/workflows/simple-hello-world.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 37d20b98..7631fbc5 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -1,8 +1,8 @@ name: Just a static Hello World!!! -on: - schedule: - - cron: '*/2 * * * *' +on: [push] + # schedule: + # - cron: '*/2 * * * *' jobs: hello_world: From 5d70ba1fddea3f91d5cb96078491d20e992f6d7b Mon Sep 17 00:00:00 2001 From: Vadzim Date: Fri, 16 Aug 2024 21:56:48 +0200 Subject: [PATCH 11/15] [12] One more change --- .github/workflows/simple-hello-world.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml index 7631fbc5..d0c5fb73 100644 --- a/.github/workflows/simple-hello-world.yml +++ b/.github/workflows/simple-hello-world.yml @@ -10,4 +10,4 @@ jobs: steps: - name: The only single step id: first-step - run: echo "Hello GitHub Actions World!!!" \ No newline at end of file + run: echo "Hello GitHub Actions World!!! Congrats $USER !!!" \ No newline at end of file From 3047c0578f2dfae0b3d45537785aacf71c013deb Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sat, 17 Aug 2024 13:14:57 +0200 Subject: [PATCH 12/15] Change #20 --- .github/workflows/simple-hello-world.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/simple-hello-world.yml diff --git a/.github/workflows/simple-hello-world.yml b/.github/workflows/simple-hello-world.yml deleted file mode 100644 index d0c5fb73..00000000 --- a/.github/workflows/simple-hello-world.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Just a static Hello World!!! - -on: [push] - # schedule: - # - cron: '*/2 * * * *' - -jobs: - hello_world: - runs-on: ubuntu-latest - steps: - - name: The only single step - id: first-step - run: echo "Hello GitHub Actions World!!! Congrats $USER !!!" \ No newline at end of file From 5159dc44e086cdc5370e9bbf02dda97916489020 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sat, 17 Aug 2024 13:21:04 +0200 Subject: [PATCH 13/15] Change #21 --- .github/workflows/hello-world.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/hello-world.yml diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml new file mode 100644 index 00000000..5d48e721 --- /dev/null +++ b/.github/workflows/hello-world.yml @@ -0,0 +1,19 @@ +name: Hello World Workflow + +on: + schedule: + - cron: '*/1 * * * *' + +jobs: + hello-world: + runs-on: ubuntu-latest + steps: + - id: preparation + name: Preparation + run: echo "Today is {date}. Praparing for the greeting." + - id: greeting + name: Greeting + run: echo "Hello {user}!" + - id: completion + name: Completion + run: echo "Have a nice day!" \ No newline at end of file From 468e6f954568d8fc2e47a7e4e1e79c2abda9aaf0 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sat, 17 Aug 2024 13:31:34 +0200 Subject: [PATCH 14/15] Change #21 --- .github/workflows/hello-world.yml | 1 + .github/workflows/schedule.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 5d48e721..f6a34a00 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -3,6 +3,7 @@ name: Hello World Workflow on: schedule: - cron: '*/1 * * * *' + push jobs: hello-world: diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 00000000..872512e8 --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,12 @@ +name: Just a schedule + +on: + schedule: + - cron: '*/5 * * * *' + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: Echo current time + run: echo "The current server time is $(date)" \ No newline at end of file From 03203eca9eef1589f9d37750ccd98ec83d0ee0d1 Mon Sep 17 00:00:00 2001 From: Vadzim Date: Sat, 17 Aug 2024 13:34:38 +0200 Subject: [PATCH 15/15] Change #22 --- .github/workflows/hello-world.yml | 1 - .github/workflows/schedule.yml | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index f6a34a00..5d48e721 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -3,7 +3,6 @@ name: Hello World Workflow on: schedule: - cron: '*/1 * * * *' - push jobs: hello-world: diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml deleted file mode 100644 index 872512e8..00000000 --- a/.github/workflows/schedule.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Just a schedule - -on: - schedule: - - cron: '*/5 * * * *' - -jobs: - hello_world: - runs-on: ubuntu-latest - steps: - - name: Echo current time - run: echo "The current server time is $(date)" \ No newline at end of file