File tree Expand file tree Collapse file tree 3 files changed +15
-28
lines changed
actions/appinspect_publish Expand file tree Collapse file tree 3 files changed +15
-28
lines changed Original file line number Diff line number Diff line change 2
2
import requests
3
3
from requests .auth import HTTPBasicAuth
4
4
5
- APP_ID = os .environ ['APP_ID ' ]
6
- filename = os .environ ['APP_FILE ' ]
5
+ APP_ID = os .environ ['INPUT_APP_ID ' ]
6
+ filename = os .environ ['INPUT_APP_FILE ' ]
7
7
filepath = os .path .join (os .environ ['GITHUB_WORKSPACE' ], filename )
8
- SPLUNK_USERNAME = os .environ ['SPLUNK_USERNAME ' ]
9
- SPLUNK_PASSWORD = os .environ ['SPLUNK_PASSWORD ' ]
10
- SPLUNK_VERSION = os .environ ['SPLUNK_VERSION ' ]
8
+ SPLUNK_USERNAME = os .environ ['INPUT_SPLUNK_USERNAME ' ]
9
+ SPLUNK_PASSWORD = os .environ ['INPUT_SPLUNK_PASSWORD ' ]
10
+ SPLUNK_VERSION = os .environ ['INPUT_SPLUNK_VERSION ' ]
11
11
12
12
api_path = 'https://splunkbase.splunk.com/api/v1/app/{}/new_release' .format (APP_ID )
13
13
Original file line number Diff line number Diff line change 62
62
with :
63
63
name : github_app_for_splunk-1.0.0.tar.gz
64
64
path : ./github_app_for_splunk-1.0.0.tar.gz
65
+
66
+ - name : Hello world action step
67
+ uses : ./.github/actions/appinspect_publish # Uses an action in the root directory
68
+ id : hello
69
+ with :
70
+ APP_ID : ' 5596'
71
+ APP_FILE : ' github_app_for_splunk-1.0.0.tar.gz'
72
+ SPLUNK_USERNAME : ${{ secrets.SPLUNKBASE_USER }}
73
+ SPLUNK_PASSWORD : ${{ secrets.SPLUNKBASE_PASSWORD }}
74
+ SPLUNK_VERSION : ' 8.0,8.1'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments