Skip to content

fix PR creation

fix PR creation #59

name: Check for changes in OL
# Assumption here is that there will be a change that touches spec or spark integration
on: push
# actual trigger for daily run of workflow
#on:
# schedule:
# - cron: "0 5 * * 0"
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
jobs:
initialize_workflow:
runs-on: ubuntu-latest
outputs:
changes_in_spec: ${{steps.check-changes.outputs.changes_found}}
ol_release: ${{ steps.get-release.outputs.openlineage_release }}
steps:
- name: Checkout code for openlineage repository
uses: actions/checkout@v4
- name: create dir for ol spec and report
id: dir_for_spec
shell: bash
run: |
mkdir -p openlineage
- name: get latest OL spec
uses: actions/checkout@v4
with:
repository: OpenLineage/OpenLineage
path: openlineage
- name: check for changes in spec
id: check-changes
run: |
echo "changes_found=false" >> $GITHUB_OUTPUT
python scripts/compare_spec.py \
--spec_base=spec_base=./openlineage/spec \
--versions_path=./generated-files/spec_versions.json \
--new_versions_path=./updated_spec_versions.json
if [ -f updated_spec_versions.json ]; then
echo "changes_found=true" >> $GITHUB_OUTPUT
fi
- uses: actions/upload-artifact@v4
if: steps.check-changes.outputs.changes_found == 'true'
with:
name: spec-versions
path: generated-files/updated_spec_versions.json
retention-days: 1
- name: get openlineage release
if: steps.check-changes.outputs.changes_found == 'true'
id: get-release
run: |
openlineage_release=$(cat generated-files/releases.json | jq -c '.[] | select(.name | contains("openlineage")) | .latest_version ' -r)
echo "openlineage_release=${openlineage_release}" >> $GITHUB_OUTPUT
######## COMPONENT VALIDATION ########
# check if scenarios are still compatible with the new spec
scenarios_check:
needs:
- initialize_workflow
if: ${{ success() && needs.initialize_workflow.outputs.changes_in_spec == 'true' }}
uses: ./.github/workflows/check_scenarios.yml

Check failure on line 75 in .github/workflows/main_ol_spec_changes.yml

View workflow run for this annotation

GitHub Actions / Check for changes in OL

Invalid workflow file

The workflow is not valid. In .github/workflows/main_ol_spec_changes.yml (Line: 75, Col: 11): Error from called workflow tnazarew/open-lineage-tests/.github/workflows/check_scenarios.yml@904d7241c6ce7420ec86c5618ad5922a4fd81c38 (Line: 24, Col: 16): Unrecognized named-value: 'get-latest-snapshots'. Located at position 1 within expression: get-latest-snapshots == 'true' && 'main' || inputs.release
with:
release: ${{ needs.initialize_workflow.outputs.ol_release }}
get-latest-snapshots: 'true'
# check if producers still produce compatible events
spark-dataproc:
needs:
- initialize_workflow
if: ${{ success() && needs.initialize_workflow.outputs.changes_in_spec == 'true' }}
uses: ./.github/workflows/producer_spark_dataproc.yml
secrets:
gcpKey: ${{ secrets.GCP_SA_KEY }}
with:
release: ${{ needs.initialize_workflow.outputs.ol_release }}
get-latest-snapshots: 'true'
######## COLLECTION OF REPORTS AND EXECUTE APPROPRIATE ACTIONS ########
collect-and-compare-reports:
needs:
- initialize_workflow
- spark-dataproc
if: ${{ !failure() }}
uses: ./.github/workflows/collect_and_compare_reports.yml
notify-maintainers:
needs: collect-and-compare-reports
if: ${{ !failure() }}
uses: ./.github/workflows/notify_maintainers.yml
generate-compatibility-tables:
needs: collect-and-compare-reports
if: ${{ !failure() }}
uses: ./.github/workflows/generate_compatibility_tables.yml
update-repo-files:
needs:
- initialize_workflow
- notify-maintainers
- generate-compatibility-tables
uses: ./.github/workflows/update_repo_files.yml