From 1c9a1c42c47f2ce2e4171f53a0af443051b5884f Mon Sep 17 00:00:00 2001 From: Aditya Sarthak Date: Fri, 19 May 2023 23:04:58 +0530 Subject: [PATCH 01/10] new --- .github/workflows/motivational-fortune-cookie.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index ccb5fb2..5c45d35 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -13,6 +13,7 @@ jobs: uses: actions/checkout@v2 - name: Add Patience Quote + id: quote run: | quotes=( "Patience is not the ability to wait, but the ability to keep a good attitude while waiting." @@ -21,6 +22,10 @@ jobs: "Patience is the companion of wisdom." "Patience, persistence, and perspiration make an unbeatable combination for success." ) - selected_quote=${quotes[$RANDOM % ${#quotes[@]}]} - echo "##[set-output name=quote]${selected_quote}" - echo "Patience Quote: ${selected_quote}" >> $GITHUB_EVENT_PATH + selected_quote=${quotes[$(($RANDOM % ${#quotes[@]}))]} + echo "::set-output name=quote::$selected_quote" + echo "Patience Quote: $selected_quote" >> $GITHUB_EVENT_PATH + + - name: Display Patience Quote + run: | + echo "${{ steps.quote.outputs.quote }}" From 3124cdef9248f45fc87747e88dc60e1f6c34eac5 Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:29:38 +0530 Subject: [PATCH 02/10] Update motivational-fortune-cookie.yml --- .../workflows/motivational-fortune-cookie.yml | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index 5c45d35..1580f2b 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -1,31 +1,28 @@ -name: Patience Quotes/Memes for PRs - +name: Motivational Quotes on: - pull_request: - types: [opened] + push: + branches: + - main jobs: - add-patience-quote: + motivational_quotes: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Add Patience Quote - id: quote + - name: Get Motivational Quote + id: get_quote run: | quotes=( - "Patience is not the ability to wait, but the ability to keep a good attitude while waiting." - "Patience is bitter, but its fruit is sweet." - "The two most powerful warriors are patience and time." - "Patience is the companion of wisdom." - "Patience, persistence, and perspiration make an unbeatable combination for success." + "Success is not final, failure is not fatal: It is the courage to continue that counts. - Winston Churchill" + "Believe you can and you're halfway there. - Theodore Roosevelt" + "The only limit to our realization of tomorrow will be our doubts of today. - Franklin D. Roosevelt" + "Your time is limited, don't waste it living someone else's life. - Steve Jobs" + "The future belongs to those who believe in the beauty of their dreams. - Eleanor Roosevelt" ) - selected_quote=${quotes[$(($RANDOM % ${#quotes[@]}))]} - echo "::set-output name=quote::$selected_quote" - echo "Patience Quote: $selected_quote" >> $GITHUB_EVENT_PATH + echo "::set-output name=quote::${quotes[RANDOM % ${#quotes[@]}]}" - - name: Display Patience Quote - run: | - echo "${{ steps.quote.outputs.quote }}" + - name: Display Motivational Quote + run: echo "Motivational Quote:${{ steps.get_quote.outputs.quote }}" From f10f3034204e00e28d78dcec6ea8f0580beef8c7 Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:30:06 +0530 Subject: [PATCH 03/10] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7efff65 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +mmmmmmmmmmmmmm From 919381756e46c49ffea605a53480aa6d7ec8275d Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:31:24 +0530 Subject: [PATCH 04/10] Create read2.md --- read2.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 read2.md diff --git a/read2.md b/read2.md new file mode 100644 index 0000000..b257e44 --- /dev/null +++ b/read2.md @@ -0,0 +1 @@ +ENTER From 378f63ede446b24bbfc5da454671421f3ef3d5ee Mon Sep 17 00:00:00 2001 From: Aditya Sarthak Date: Sat, 20 May 2023 04:42:26 +0530 Subject: [PATCH 05/10] Added 2 --- README (2).md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 README (2).md diff --git a/README (2).md b/README (2).md new file mode 100644 index 0000000..faaf921 --- /dev/null +++ b/README (2).md @@ -0,0 +1,9 @@ +NAME:Aditya Sarthak + +ROLL NO.:220101007 + +BRANCH:CSE + +My name is Aditya Sarthak from CSE department.I come from Patna,Bihar.My hobbies include playing volleyball and cricket.I want to join coding club in order to deepdive in the technical universe and pursue my interests in this field. +I want to contribute to open source because it will help me to meet more like minded people sharing similiar interests as myself and wiuld help me in expanding my knowledge. +Moreover, I am into web development and hence this open source would help me get new templates and ideas for developing more interactive and useful websites. From b10e58d3e0577fe303a557da82f87540e23a2fd8 Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:44:39 +0530 Subject: [PATCH 06/10] Update motivational-fortune-cookie.yml --- .github/workflows/motivational-fortune-cookie.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index 1580f2b..aff53a5 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -2,7 +2,7 @@ name: Motivational Quotes on: push: branches: - - main + - master jobs: motivational_quotes: From a20ada3e8463b9ad75a5551e9a961c9cc90ae487 Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:47:14 +0530 Subject: [PATCH 07/10] Update motivational-fortune-cookie.yml --- .github/workflows/motivational-fortune-cookie.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index aff53a5..17a2991 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -11,6 +11,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Set up Node.js 16 + uses: actions/setup-node@v2 + with: + node-version: 16 - name: Get Motivational Quote id: get_quote From 634392a314f967d6a601626070f2708f4a8817ff Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:49:19 +0530 Subject: [PATCH 08/10] Update motivational-fortune-cookie.yml --- .github/workflows/motivational-fortune-cookie.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index 17a2991..3a74c90 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -10,11 +10,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 - - name: Set up Node.js 16 - uses: actions/setup-node@v2 - with: - node-version: 16 + uses: actions/checkout@v4 - name: Get Motivational Quote id: get_quote From 52537a53c4f9c5325fffe28e38329a33056484fb Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:49:56 +0530 Subject: [PATCH 09/10] Update motivational-fortune-cookie.yml --- .github/workflows/motivational-fortune-cookie.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index 3a74c90..914ff4b 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v3 - name: Get Motivational Quote id: get_quote From c1db7fb8ee9729487a7f6af9c3ccd3d28f4fe321 Mon Sep 17 00:00:00 2001 From: AdityaSarthak <133679116+AdityaSarthak@users.noreply.github.com> Date: Sat, 20 May 2023 04:52:55 +0530 Subject: [PATCH 10/10] Update motivational-fortune-cookie.yml --- .github/workflows/motivational-fortune-cookie.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/motivational-fortune-cookie.yml b/.github/workflows/motivational-fortune-cookie.yml index 914ff4b..8d628d6 100644 --- a/.github/workflows/motivational-fortune-cookie.yml +++ b/.github/workflows/motivational-fortune-cookie.yml @@ -22,7 +22,7 @@ jobs: "Your time is limited, don't waste it living someone else's life. - Steve Jobs" "The future belongs to those who believe in the beauty of their dreams. - Eleanor Roosevelt" ) - echo "::set-output name=quote::${quotes[RANDOM % ${#quotes[@]}]}" + echo "QUOTE=${quotes[$(( RANDOM % ${#quotes[@]} ))]}" >> $GITHUB_ENV - name: Display Motivational Quote - run: echo "Motivational Quote:${{ steps.get_quote.outputs.quote }}" + run: echo "Motivational Quote:${{ env.QUOTE }}"