From 998c0628be18a871059db70f534e1f40d4d9853a Mon Sep 17 00:00:00 2001 From: rajson49-hue Date: Fri, 3 Oct 2025 22:58:29 +0200 Subject: [PATCH] changed --- .github/workflows/cron.yml | 14 ++++++++++++++ .github/workflows/pr-verify.yml | 3 +-- .github/workflows/secrets.yml | 24 ++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cron.yml create mode 100644 .github/workflows/secrets.yml diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml new file mode 100644 index 00000000..cd1dc536 --- /dev/null +++ b/.github/workflows/cron.yml @@ -0,0 +1,14 @@ +name: Run Every 5 Minutes +# it can be drop from schedule if they experiencing high load. +on: + schedule: + - cron: '*/59 * * * *' + +jobs: + cron: + name: Run every 5 minutes + runs-on: ubuntu-latest + + steps: + - name: Hello World + run: echo "Hello World" \ No newline at end of file diff --git a/.github/workflows/pr-verify.yml b/.github/workflows/pr-verify.yml index 36162b60..ef61168a 100644 --- a/.github/workflows/pr-verify.yml +++ b/.github/workflows/pr-verify.yml @@ -7,9 +7,8 @@ env: DOTNET_VERSION: '8.0' # set this to the .NET Core version to use on: - push: + pull_request: branches: [ "main" ] - workflow_dispatch: permissions: contents: read diff --git a/.github/workflows/secrets.yml b/.github/workflows/secrets.yml new file mode 100644 index 00000000..9566951f --- /dev/null +++ b/.github/workflows/secrets.yml @@ -0,0 +1,24 @@ +name: Secrets workflow + +# These are the veriables which you could use in your workflows +env: + API_CSPROJ_PATH: "./src/GitHubActionsDotNet.Api/GitHubActionsDotNet.Api.csproj" + +on: + pull_request: + branches: ["main"] + + +jobs: + secrets: + name: Secrets Demo + runs-on: ubuntu-latest + + steps: + - name: echo environment variable + run: echo "$API_CSPROJ_PATH" + + + + + \ No newline at end of file