forked from NyaMisty/action-ipadown
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.97 KB
/
ipa_shell.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# vim: expandtab tabstop=2 shiftwidth=2
name: IPA Download Shell
env:
PYTHONIOENCODING: utf-8
# Allow Release
permissions: write-all
on:
workflow_dispatch:
inputs:
appleId:
description: 'Apple ID Account'
required: true
appleIdPwd:
description: 'Apple ID Password'
required: true
itunes_debug_enabled:
description: 'Run the build with ngrok debugging enabled'
required: false
default: false
jobs:
ipadown_shell:
name: 'IPA Download Shell'
runs-on: "windows-latest"
steps:
- name: Masking inputs
run: |
SECRET_VALUE=$(cat $GITHUB_EVENT_PATH | jq -r '.inputs.appleId' )
echo "::add-mask::$SECRET_VALUE"
SECRET_VALUE=$(cat $GITHUB_EVENT_PATH | jq -r '.inputs.appleIdPwd' )
echo "::add-mask::$SECRET_VALUE"
shell: bash
- name: Set up git repository
uses: actions/checkout@v2
- name: Setup ipatool-py
run: |
git clone https://github.com/NyaMisty/ipatool-py
mkdir -p ipaDown
shell: bash
- name: Setup iTunes Header Service
uses: NyaMisty/actions-iTunes-header@master
with:
apple_id: ${{ github.event.inputs.appleId }}
apple_id_pwd: ${{ github.event.inputs.appleIdPwd }}
ngrok_token: ${{ secrets.NGROK_AUTH_TOKEN }}
#- uses: NyaMisty/reverse-rdp-windows-github-actions-ng@master
# if: ${{ always() && github.event_name == 'workflow_dispatch' && github.event.inputs.itunes_debug_enabled }}
# with:
# ngrok-token: ${{ secrets.NGROK_AUTH_TOKEN }}
# password: Aa123456
# foreground: false
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: "Upload package"
uses: NyaMisty/upload-artifact-as-is@master
with:
path: ipaDown\*