From a2a098944dd4657256046a3130ecae908e31761d Mon Sep 17 00:00:00 2001 From: anaymous Date: Wed, 8 May 2024 17:37:11 -0400 Subject: [PATCH 1/4] Create sleepyCat.yaml --- sleepyCat.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sleepyCat.yaml diff --git a/sleepyCat.yaml b/sleepyCat.yaml new file mode 100644 index 000000000..fc998afd2 --- /dev/null +++ b/sleepyCat.yaml @@ -0,0 +1,21 @@ +name: sleepy-cat +# on key is triggered when pull request is opened or reopened +on: + pull_request: + # Reference: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request + types: + - opened + - reopened +# defining what is going to run when the action is triggered +jobs: + sleepyCat-pull-request: + # What shows up when it is triggered + name: A sleepy cat with a good happy dream + # Reference: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories + runs-on: ubuntu-latest + steps: + - uses: ruairidhwm/action-cats@1.0.1 + with: + # GitHub token reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication + # key GITHUB_TOKEN:, expression ${{}}, context secrets.GITHUB_TOKEN - alive for the duration of the workflow + GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }} From 422d46e858b52f25a46013cebe1b617fdda36fe9 Mon Sep 17 00:00:00 2001 From: anaymous Date: Wed, 8 May 2024 17:39:31 -0400 Subject: [PATCH 2/4] add workflow expression reference --- sleepyCat.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/sleepyCat.yaml b/sleepyCat.yaml index fc998afd2..1fb5aafc0 100644 --- a/sleepyCat.yaml +++ b/sleepyCat.yaml @@ -18,4 +18,5 @@ jobs: with: # GitHub token reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication # key GITHUB_TOKEN:, expression ${{}}, context secrets.GITHUB_TOKEN - alive for the duration of the workflow + # workflow expression reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }} From d8b00fab02da917dabca8039a9d1a4ef124a1678 Mon Sep 17 00:00:00 2001 From: anaymous Date: Wed, 8 May 2024 17:51:15 -0400 Subject: [PATCH 3/4] add more key GITHUB_TOKEN description and add a missing s for GITHUB_TOKEN --- sleepyCat.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleepyCat.yaml b/sleepyCat.yaml index 1fb5aafc0..f149ce690 100644 --- a/sleepyCat.yaml +++ b/sleepyCat.yaml @@ -17,6 +17,6 @@ jobs: - uses: ruairidhwm/action-cats@1.0.1 with: # GitHub token reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication - # key GITHUB_TOKEN:, expression ${{}}, context secrets.GITHUB_TOKEN - alive for the duration of the workflow + # key GITHUB_TOKEN:, expression ${{}}, context secrets.GITHUB_TOKEN - alive for the duration of the workflow, and enable to copy code to vm # workflow expression reference: https://docs.github.com/en/actions/security-guides/automatic-token-authentication - GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 8dce0c8e5780922c168c4bd8c1ddfdc9a80a2d38 Mon Sep 17 00:00:00 2001 From: Jiachun Xiang <18576811+mpa-mxiang@users.noreply.github.com> Date: Wed, 8 May 2024 19:51:29 -0400 Subject: [PATCH 4/4] move sleepy cat yaml file to github workflow folder --- sleepyCat.yaml => .github/workflows/sleepyCat.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename sleepyCat.yaml => .github/workflows/sleepyCat.yaml (100%) diff --git a/sleepyCat.yaml b/.github/workflows/sleepyCat.yaml similarity index 100% rename from sleepyCat.yaml rename to .github/workflows/sleepyCat.yaml