From 4f2f00c034fbca35b495895b65cc8bd4261052ef Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 05:16:19 +0300 Subject: [PATCH 1/8] testing github actions --- .github/workflows/schedule.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/workflows/schedule.yml diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 000000000..3554e7c3f --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,10 @@ +on: + schedule: + - cron: "*/1 * * * *" + +jobs: + hello_world: + runs-on: windows-latest + steps: + - name: Echo current time + run: echo "the current server time is $(Get-Date)" From 261e5e34499393009d726030ea8baae31d07f5e3 Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:08:57 +0300 Subject: [PATCH 2/8] testing github actions 2 --- .github/workflows/multi-event.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/multi-event.yml diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml new file mode 100644 index 000000000..a3275be38 --- /dev/null +++ b/.github/workflows/multi-event.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + +jobs: + hello_world: + runs-on: ubuntu-latest + steps: + - name: "Echo Basic Information" + run: | + echo "REF: $GITHUB_REF" + echo "Job ID: $GITHUB_JOB" + echo "Action: $GITHUB_ACTION" + echo "Actor: $GITHUB_ACTOR" \ No newline at end of file From c3d28d721bcf0d157a11aea2a0840e9d5567d6a2 Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:15:59 +0300 Subject: [PATCH 3/8] adding dev branch and modify ubunto to windows --- .github/workflows/multi-event.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml index a3275be38..f7bee845e 100644 --- a/.github/workflows/multi-event.yml +++ b/.github/workflows/multi-event.yml @@ -9,11 +9,11 @@ on: jobs: hello_world: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: "Echo Basic Information" run: | echo "REF: $GITHUB_REF" echo "Job ID: $GITHUB_JOB" echo "Action: $GITHUB_ACTION" - echo "Actor: $GITHUB_ACTOR" \ No newline at end of file + echo "Actor: $GITHUB_ACTOR" From 019e91f874a9a2b9ab8903aeb2e720153c7d0ceb Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:25:45 +0300 Subject: [PATCH 4/8] modifing echo expression --- .github/workflows/multi-event.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml index f7bee845e..21cdcce6a 100644 --- a/.github/workflows/multi-event.yml +++ b/.github/workflows/multi-event.yml @@ -13,7 +13,8 @@ jobs: steps: - name: "Echo Basic Information" run: | - echo "REF: $GITHUB_REF" - echo "Job ID: $GITHUB_JOB" - echo "Action: $GITHUB_ACTION" - echo "Actor: $GITHUB_ACTOR" + + echo "REF: $env:GITHUB_REF" + echo "Job ID: $env:GITHUB_JOB" + echo "Action: $env:GITHUB_ACTION" + echo "Actor: $env:GITHUB_ACTOR" From 78f09028ac230bfe7c0f661e36e97b87f7823b0a Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:37:01 +0300 Subject: [PATCH 5/8] pushing to main --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43fc9143d..badd95b54 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Github-Examples + A repo containing GitHub for programmatic examples +"test from mohamed" From 586a59c4f1eada4c60f887db42934c7e13895d7c Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:44:30 +0300 Subject: [PATCH 6/8] commit from dev branch --- .github/workflows/multi-event.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-event.yml b/.github/workflows/multi-event.yml index f7bee845e..bd72c3257 100644 --- a/.github/workflows/multi-event.yml +++ b/.github/workflows/multi-event.yml @@ -2,7 +2,7 @@ on: push: branches: - main - - dev + # - dev pull_request: branches: - main From 6df4c6c4660fc27307d991977a9ab2aee64225b0 Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 16:52:31 +0300 Subject: [PATCH 7/8] last push test from dev branch --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 43fc9143d..9b43e9835 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Github-Examples + A repo containing GitHub for programmatic examples +"mohamed test" From e024d8b9beccd8321f22040827cdc650ccae7db6 Mon Sep 17 00:00:00 2001 From: mohamed-elrokapy Date: Fri, 20 Jun 2025 17:19:44 +0300 Subject: [PATCH 8/8] workflow_dispatch --- .github/workflows/manual.yml | 32 +++++++++++++++++++++++++++++ github-actions/templates/manual.yml | 8 ++++---- myData.json | 2 ++ 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/manual.yml create mode 100644 myData.json diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 000000000..5ced5076f --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,32 @@ +name: Manual Trigger with Params + +on: + workflow_dispatch: + inputs: + name: + description: "Name of the person to greet" + required: true + type: string + greeting: + description: "Type of greeting" + required: true + type: string + data: + description: "Base64 encoded content of a file" + required: false + type: string + +jobs: + greet: + runs-on: ubuntu-latest + steps: + - name: Decode File Content + run: | + echo "${{ inputs.data }}" | base64 --decode > ./decoded_file.txt + - name: Display Greeting + run: | + echo "${{ inputs.greeting }}, ${{ inputs.name }}!" + - name: Display File Content + run: | + echo "Contents of the file:" + cat ./decoded_file.txt diff --git a/github-actions/templates/manual.yml b/github-actions/templates/manual.yml index 081adf3a6..5ced5076f 100644 --- a/github-actions/templates/manual.yml +++ b/github-actions/templates/manual.yml @@ -4,15 +4,15 @@ on: workflow_dispatch: inputs: name: - description: 'Name of the person to greet' + description: "Name of the person to greet" required: true type: string greeting: - description: 'Type of greeting' + description: "Type of greeting" required: true type: string data: - description: 'Base64 encoded content of a file' + description: "Base64 encoded content of a file" required: false type: string @@ -29,4 +29,4 @@ jobs: - name: Display File Content run: | echo "Contents of the file:" - cat ./decoded_file.txt \ No newline at end of file + cat ./decoded_file.txt diff --git a/myData.json b/myData.json new file mode 100644 index 000000000..458b122e6 --- /dev/null +++ b/myData.json @@ -0,0 +1,2 @@ +// { "hello": "mohamed" } +eyAiaGVsbG8iOiAibW9oYW1lZCIgfQ0K \ No newline at end of file