From d32a4cc24ab2ed8df37edc96211f85fd051f3819 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:33:16 +0600 Subject: [PATCH 1/8] adfsaa --- .github/workflows/first-github-actions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index abb8163..dc4a485 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -21,5 +21,7 @@ jobs: - name: Use Secret env: FIRST_KEY: ${{ secrets.FIRST_KEY }} + SECOND_KEY: ${{ secrets.SECOND_KEY }} run: | echo "The secret key value is $FIRST_KEY" + echo "The second key value is $SECOND_KEY" From b6fbc3d81f50d54a0c99a7a1a38ba96338fc0f48 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:34:32 +0600 Subject: [PATCH 2/8] adfsaa --- .github/workflows/first-github-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index dc4a485..ad015d1 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -3,7 +3,7 @@ name: learn-github-actions on: push: branches: - - main + - master jobs: check-bats-version: From 2f93b3043990d92cf8b85bb3770361ec0825abee Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:39:25 +0600 Subject: [PATCH 3/8] asdsa --- .github/workflows/first-github-actions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index ad015d1..d29eafa 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -25,3 +25,6 @@ jobs: run: | echo "The secret key value is $FIRST_KEY" echo "The second key value is $SECOND_KEY" + + + From db33b498bfa98c1da0df7e1b09eefe133534bac4 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:46:06 +0600 Subject: [PATCH 4/8] asdsa --- .github/workflows/first-github-actions.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index d29eafa..d2817c3 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -20,11 +20,15 @@ jobs: run: bats -v - name: Use Secret env: - FIRST_KEY: ${{ secrets.FIRST_KEY }} - SECOND_KEY: ${{ secrets.SECOND_KEY }} + FIRST_KEY: ${{secrets.FIRST_KEY}} run: | - echo "The secret key value is $FIRST_KEY" - echo "The second key value is $SECOND_KEY" + echo "Writing to the file" + echo "Key : $FIRST_KEY" -> my-file.txt + cat my-file.txt + - name: "Display File Contens" + run: | + echo "Contents of my-file.txt" + cat my-file.txt From ca0a6a6f637e26a9bae876a78d74fae857f1d522 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:48:57 +0600 Subject: [PATCH 5/8] asdsa --- .github/workflows/first-github-actions.yml | 31 +++++++++------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index d2817c3..721ae25 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -6,29 +6,22 @@ on: - master jobs: - check-bats-version: + create-file: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: '14' - - name: Install bats - run: npm install -g bats - - name: Check bats version - run: bats -v - - name: Use Secret + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create and Write to File env: - FIRST_KEY: ${{secrets.FIRST_KEY}} - run: | - echo "Writing to the file" - echo "Key : $FIRST_KEY" -> my-file.txt - cat my-file.txt - - name: "Display File Contens" + ENV_VALUE: ${{ secrets.ENV_VALUE }} run: | - echo "Contents of my-file.txt" + echo "Writing value to file..." + echo "Key: $ENV_VALUE" > my-file.txt cat my-file.txt - - + - name: Display File Contents + run: | + echo "Contents of my-file.txt:" + echo "::set-output name=file-contents::$(cat my-file.txt)" From 470f60ba50355ebc069cd02d95258354d1684428 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 00:52:37 +0600 Subject: [PATCH 6/8] asdsa --- .github/workflows/first-github-actions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index 721ae25..ae29ea3 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -25,3 +25,7 @@ jobs: run: | echo "Contents of my-file.txt:" echo "::set-output name=file-contents::$(cat my-file.txt)" + + + + From 563893a1fb7d058b3c79f6848416166cbbdfd0d9 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 08:10:58 +0600 Subject: [PATCH 7/8] doen --- .github/workflows/first-github-actions.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index ae29ea3..adcc0c5 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -3,7 +3,7 @@ name: learn-github-actions on: push: branches: - - master + - main jobs: create-file: @@ -19,13 +19,13 @@ jobs: run: | echo "Writing value to file..." echo "Key: $ENV_VALUE" > my-file.txt - cat my-file.txt - name: Display File Contents + id: display-contents run: | echo "Contents of my-file.txt:" - echo "::set-output name=file-contents::$(cat my-file.txt)" - - - + cat my-file.txt + - name: Use File Contents + run: | + echo "File Contents: ${{ steps.display-contents.outputs.file-contents }}" From 41c13b0710d2a68450a7a8b63f95945c11ca1aa2 Mon Sep 17 00:00:00 2001 From: Bekzhan Date: Fri, 9 Jun 2023 08:12:02 +0600 Subject: [PATCH 8/8] doen --- .github/workflows/first-github-actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/first-github-actions.yml b/.github/workflows/first-github-actions.yml index adcc0c5..129bad8 100644 --- a/.github/workflows/first-github-actions.yml +++ b/.github/workflows/first-github-actions.yml @@ -3,7 +3,7 @@ name: learn-github-actions on: push: branches: - - main + - master jobs: create-file: