Skip to content

Commit

Permalink
Pass token as input to action.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Nov 3, 2023
1 parent 4cd0737 commit b192144
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/new-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ jobs:
runs-on: self-hosted
steps:
- uses: touchlab/SKIE@tk/smoke-tests
with:
github-token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}

11 changes: 7 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Prepare Job Worker
description: Prepares a job worker for running Gradle tasks on SKIE project

inputs:
github-token:
description: 'GitHub token'
required: true


runs:
using: composite
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.ACCEPTANCE_TESTS_TOKEN }}
token: ${{ inputs.github-token }}
- uses: actions/setup-java@v3
with:
distribution: temurin
Expand All @@ -24,9 +30,6 @@ runs:
with:
arguments: ':acceptance-tests:functional__kgp_latestTest'
build-root-directory: SKIE
env:
KOTLIN_LINK_MODE: ${{ inputs.linkage }}
KOTLIN_BUILD_CONFIGURATION: ${{ inputs.configuration }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: ${{ failure() || success() }}
Expand Down

0 comments on commit b192144

Please sign in to comment.