Skip to content

Commit

Permalink
Use secrets instead of inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar committed Nov 15, 2024
1 parent f22dc4f commit 2c91c4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/python_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Unit tests

on:
workflow_call:
inputs:
secrets:
httpbin_url:
required: false
type: string
default: 'https://httpbin.org'
description: Used to set the HTTPBIN_URL environment variable

jobs:
Expand All @@ -19,7 +17,7 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # All supported Python versions.
runs-on: ${{ matrix.os }}
env:
HTTPBIN_URL: ${{ inputs.httpbin_url }}
HTTPBIN_URL: ${{ secrets.httpbin_url || 'https://httpbin.org' }}

steps:
- name: Checkout repository
Expand Down

0 comments on commit 2c91c4e

Please sign in to comment.