forked from luxe112/secretsource
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.2 KB
/
Windows-GRDP1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Windows (Google Remote Desktop 1)
on:
workflow_dispatch:
inputs:
authcode:
description: 'Enter Google Remote Desktop (Windows PowerShell) code'
required: true
computername:
description: 'Computer Name'
default: 'MagustRDP1'
required: true
pincode:
description: 'Six digit Pin'
default: '555555'
required: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Mask Code & Pin.
shell: bash
run: |
_Code=$(jq -r '.inputs.authcode' $GITHUB_EVENT_PATH)
_CName=$(jq -r '.inputs.computername' $GITHUB_EVENT_PATH)
_Pin=$(jq -r '.inputs.pincode' $GITHUB_EVENT_PATH)
echo ::add-mask::$_Code
echo ::add-mask::$_CName
echo ::add-mask::$_Pin
echo AuthCode="$_Code" >> $GITHUB_ENV
echo ComputerName="$_CName" >> $GITHUB_ENV
echo AuthPin="$_Pin" >> $GITHUB_ENV
- name: Initializing Setup
run: ./GRDP-VPS.ps1 ${{ env.ComputerName }}
- name: Starting Google Remote Desktop
run: ${{ env.AuthCode }} -pin=${{ env.AuthPin }}
- name: Keep Alive.
shell: bash
run: sh Files/GRDP.bat