Skip to content

Commit

Permalink
fix: default to matrix apify-version for workflow dispatch with no ap…
Browse files Browse the repository at this point in the history
…ify version provided (#148)
  • Loading branch information
vladfrangu authored Dec 16, 2024
1 parent fe6c508 commit 232682f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-python-playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
apify_version:
description: 'Apify Python SDK version (e.g.: "1.0.0"). If missing, the latest version will be used.'
required: false
is_latest_browser_image:
description: If this is a release of the latest browser image. This gets autofilled by CI here
type: boolean
default: false

repository_dispatch:
types: [build-python-images]
Expand Down Expand Up @@ -78,6 +74,11 @@ jobs:
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG=latest" >> $GITHUB_ENV; fi
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Set default inputs if event is workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: |
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Check if inputs are set correctly
run: |
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG input is empty!" >&2; exit 1; fi
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-python-selenium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ jobs:
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG=latest" >> $GITHUB_ENV; fi
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Set default inputs if event is workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: |
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Check if inputs are set correctly
run: |
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG input is empty!" >&2; exit 1; fi
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ jobs:
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG=latest" >> $GITHUB_ENV; fi
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Set default inputs if event is workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: |
if [[ -z "$APIFY_VERSION" ]]; then echo "APIFY_VERSION=${{ matrix.apify-version }}" >> $GITHUB_ENV; fi
- name: Check if inputs are set correctly
run: |
if [[ -z "$RELEASE_TAG" ]]; then echo "RELEASE_TAG input is empty!" >&2; exit 1; fi
Expand Down

0 comments on commit 232682f

Please sign in to comment.