From 96ba2c7e1da1733c4d56a1e3d46a378a2f605ef7 Mon Sep 17 00:00:00 2001 From: Quyen Truong Date: Wed, 12 Jan 2022 11:49:29 -0800 Subject: [PATCH] Update action.yml --- .github/workflows/action.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 2aee53d..b3d4830 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,6 +1,7 @@ name: WinRAR Keygen on: + workflow_dispatch: push: branches: [ master ] paths: @@ -13,24 +14,10 @@ jobs: steps: - uses: actions/checkout@v2 - - - name: Get key text1 - id: text1 - uses: notiz-dev/github-action-json-property@release - with: - path: 'keygen/info.json' - prop_path: 'text1' - - - name: Get key text2 - id: text2 - uses: notiz-dev/github-action-json-property@release - with: - path: 'keygen/info.json' - prop_path: 'text2' - name: Generate key shell: powershell - run: bin/x64-Release/winrar-keygen.exe ${{steps.text1.outputs.prop}} ${{steps.text2.outputs.prop}} | out-file -encoding ascii rarreg.key + run: bin/x64-Release/winrar-keygen.exe "${{secrets.TEXT1}}" "${{secrets.TEXT2}}" | out-file -encoding ascii rarreg.key - name: Upload key uses: actions/upload-artifact@v2