-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (32 loc) · 991 Bytes
/
unex-check.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
name: "Check Nexus credentials"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
deploy:
if: github.repository_owner == 'alandtse'
runs-on: ubuntu-latest
steps:
- name: Setup Dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '3.1.x'
include-prerelease: false
- name: Download NexusUploader
run: dotnet tool install -g NexusUploader
- name: Check Nexus Cookies
# https://github.com/agc93/nexus-uploader
env:
UNEX_COOKIES: ${{ secrets.UNEX_COOKIES }}
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }}
run: |
unex check --cookie
- name: Check Nexus API Key
# https://github.com/agc93/nexus-uploader
# https://www.nexusmods.com/users/myaccount?tab=api%20access
env:
UNEX_COOKIES: ${{ secrets.UNEX_COOKIES }}
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }}
run: |
unex check --key $UNEX_APIKEY