From 894860923e924553e6fb1a77b6980dbeb6a99e76 Mon Sep 17 00:00:00 2001 From: milesartemius Date: Fri, 28 Jan 2022 11:05:54 +0300 Subject: [PATCH 1/7] default value for token added --- action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index bdf1622..5073df3 100644 --- a/action.yaml +++ b/action.yaml @@ -18,7 +18,8 @@ inputs: required: false token: description: 'The GitHub token. Typically this will be secrets.GITHUB_TOKEN' - required: true + required: false + default: ${{ github.token }} runs: using: 'docker' From 3308cf04dae653422a2a8302975a8bab6a87b805 Mon Sep 17 00:00:00 2001 From: Sergeev Alexander Date: Fri, 28 Jan 2022 13:17:09 +0300 Subject: [PATCH 2/7] Update demo.yml --- .github/workflows/demo.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 3c570c3..4b742aa 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,9 +1,7 @@ name: Demo on: - pull_request: - branches: - - master + push jobs: demo: @@ -12,9 +10,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Create a subdirectory - run: | - mkdir subdir + run: mkdir subdir + - name: Get the latest release id: get_release uses: ./ @@ -23,7 +22,7 @@ jobs: version: "tags/v0.1.18" file: "plague-linux.zip" target: "subdir/plague-linux.zip" - token: ${{ secrets.GITHUB_TOKEN }} + - name: Display the details run: | echo ${{ steps.get_release.outputs.version }} From c86bd32576219996aff63370f85894bd02895521 Mon Sep 17 00:00:00 2001 From: Sergeev Alexander Date: Fri, 28 Jan 2022 13:17:44 +0300 Subject: [PATCH 3/7] Update demo.yml --- .github/workflows/demo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 4b742aa..4127f66 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -7,6 +7,7 @@ jobs: demo: name: Demo runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v2 From 7aa387d48b0d4882e6e19b39a935e989ccaea21e Mon Sep 17 00:00:00 2001 From: milesartemius Date: Fri, 28 Jan 2022 13:19:45 +0300 Subject: [PATCH 4/7] release action tested --- .github/workflows/demo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 4127f66..749f239 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,7 +1,7 @@ name: Demo on: - push + [ push ] jobs: demo: From a35eac8dafddf10d6ba948738d9b87ea4d96e031 Mon Sep 17 00:00:00 2001 From: milesartemius Date: Fri, 28 Jan 2022 13:25:25 +0300 Subject: [PATCH 5/7] github testing applied --- .github/workflows/demo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 749f239..bfbb194 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,7 +1,9 @@ name: Demo on: - [ push ] + pull_request: + branches: + - master jobs: demo: From d70e7d4c6bdc17888bfcea2b7f4925f36b8babda Mon Sep 17 00:00:00 2001 From: milesartemius Date: Fri, 28 Jan 2022 13:27:50 +0300 Subject: [PATCH 6/7] github testing applied --- .github/workflows/demo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index bfbb194..3ae0575 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -1,6 +1,7 @@ name: Demo on: + push: pull_request: branches: - master From cc87a49ce9e2b89da6ef37e38f253c70a3341513 Mon Sep 17 00:00:00 2001 From: milesartemius Date: Fri, 28 Jan 2022 13:31:01 +0300 Subject: [PATCH 7/7] github testing finished --- .github/workflows/demo.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 3ae0575..a7105ec 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -10,14 +10,12 @@ jobs: demo: name: Demo runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v2 - - name: Create a subdirectory - run: mkdir subdir - + run: | + mkdir subdir - name: Get the latest release id: get_release uses: ./ @@ -26,7 +24,6 @@ jobs: version: "tags/v0.1.18" file: "plague-linux.zip" target: "subdir/plague-linux.zip" - - name: Display the details run: | echo ${{ steps.get_release.outputs.version }}