Update action.yml

This commit is contained in:
Quyen Truong
2022-04-24 14:46:09 +08:00
committed by bitcookies
parent b171fe0140
commit 96ba2c7e1d
+2 -15
View File
@@ -1,6 +1,7 @@
name: WinRAR Keygen name: WinRAR Keygen
on: on:
workflow_dispatch:
push: push:
branches: [ master ] branches: [ master ]
paths: paths:
@@ -14,23 +15,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - 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 - name: Generate key
shell: powershell 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 - name: Upload key
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2