Skip to content

Commit

Permalink
added job to authenticate user with an on-prem script
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Jul 28, 2023
1 parent ff0778a commit e4b7771
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/globalworkflow-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: gw-ci-orion

on: [workflow_dispatch]
on:
pull_request:
types: [opened, labeled]
workflow_dispatch:

# TEST_DIR contains 2 directories;
# 1. HOMEgfs: clone of the global-workflow
Expand All @@ -18,7 +21,20 @@ env:
MACHINE_ID: orion

jobs:

authenticate:
if: github.event.label.name == 'CI-Orion-Dispatch' || github.event_name == 'workflow_dispatch'
runs-on: [self-hosted, orion-ready]
steps:
- name: Authenticate User
run: |
cd ${{ github.workspace}}/private/ci/scripts
module load python/3.9.2
./authenticate.py --user ${{ github.triggering_actor }}
checkout-build-link:
needs: authenticate

runs-on: [self-hosted, orion-ready]
timeout-minutes: 600

Expand Down

0 comments on commit e4b7771

Please sign in to comment.