Skip to content

Commit

Permalink
Update: support custom controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Feb 1, 2024
1 parent 4e3d69a commit 0a73ae5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ jobs:
- run: curl https://github.com/mpalmer/action-validator/releases/download/v0.5.4/action-validator_linux_amd64 -o ./action-validator
- run: chmod +x ./action-validator
- run: ./action-validator ./action.yml

custom-controller-login:
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
username: ${{ secrets.RUNWAY_LOGIN }}
password: ${{ secrets.RUNWAY_PASSWORD }}
controller-url: ${{ secrets.RUNWAY_CONTROLLER }}
- run: env|grep RUNWAY_CONTROLLER
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ inputs:
description: runway cli version
default: "latest"
required: true
controller-url:
description: Custom controller URL (for testing + enterprise)
required: false
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -69,3 +72,7 @@ runs:
ssh-add ${{ inputs.private-key }}
if: ${{ inputs.setup-ssh == 'true' }}
shell: bash
- run: echo "RUNWAY_CONTROLLER=${{ inputs.controller-url }}" >> $GITHUB_ENV
if: ${{ inputs.controller-url != '' }}
shell: bash

0 comments on commit 0a73ae5

Please sign in to comment.