Skip to content

Generate and Publish SDK Sources #56

Generate and Publish SDK Sources

Generate and Publish SDK Sources #56

name: Generate and Publish SDK Sources
on:
workflow_dispatch:
inputs:
version:
description: |
SDK Version.
E.g., 1.0.0, 1.0.1, 1.0.0-SNAPSHOT, etc.
required: true
type: string
sdk_repo_ref:
description: |
Branch or tag to checkout on the `expediagroup-java-sdk` repository.
Leave empty to use the default branch.
type: string
default: ''
jobs:
echo-things:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: $current_branch"
echo ${{ github.ref }}
git checkout ${{ github.ref }}
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: $current_branch"
echo ${{ inputs.sdk_repo_ref }}
generate-and-publish-sources:
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@mohnoor94/SDK-1441

Check failure on line 36 in .github/workflows/generate-and-publish-sdk.yaml

View workflow run for this annotation

GitHub Actions / Generate and Publish SDK Sources

Invalid workflow file

error parsing called workflow ".github/workflows/generate-and-publish-sdk.yaml" -> "ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@mohnoor94/SDK-1441" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
secrets: inherit
with:
name: rapid
version: ${{ inputs.version }}
transformations: "-th -te /v3 --operationIdsToTags"
repository: 'ExpediaGroup/rapid-java-sdk'
sdk_repo_ref: ${{ inputs.sdk_repo_ref }}