Skip to content

Commit

Permalink
Temp: change path/name upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchnielsen committed Feb 27, 2025
1 parent 943590a commit 7bf1ff6
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions .github/workflows/api-tracker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,38 +30,41 @@ jobs:
with:
fetch-depth: 0 # We need history to compare with previous schemas

- name: Get previous API schema
uses: actions/download-artifact@v4
with:
name: openapi.json

- name: Compare with latest schema
run: |
/bin/bash ./scripts/compare.sh
- name: Check if diff found
id: diff
uses: andstor/file-existence-action@v3
with:
files: 'diff.md'

- name: Create GitHub issue for changes
if: steps.diff.outputs.files_exists == 'true'
run: |
gh issue create \
--title='Prefect API change detected' \
--body-file='diff.md' \
--label='maintenance'
- name: Prepare current schema for upload
run: |
# Remove the previous schema file
rm openapi.json
# Rename the current schema file
mv openapi-current.json openapi.json
# - name: Get previous API schema
# uses: actions/download-artifact@v4
# with:
# name: openapi.json
#
# - name: Compare with latest schema
# run: |
# /bin/bash ./scripts/compare.sh
#
# - name: Check if diff found
# id: diff
# uses: andstor/file-existence-action@v3
# with:
# files: 'diff.md'
#
# - name: Create GitHub issue for changes
# if: steps.diff.outputs.files_exists == 'true'
# run: |
# gh issue create \
# --title='Prefect API change detected' \
# --body-file='diff.md' \
# --label='maintenance'
#
# - name: Prepare current schema for upload
# run: |
# # Remove the previous schema file
# rm openapi.json
# # Rename the current schema file
# mv openapi-current.json openapi.json
#
- name: temp upload
run: wget https://api.prefect.cloud/api/openapi.json

- name: Upload current schema for future comparison
if: steps.diff.outputs.files_exists == 'true'
# if: steps.diff.outputs.files_exists == 'true'
uses: actions/upload-artifact@v4
with:
name: openapi.json
Expand Down

0 comments on commit 7bf1ff6

Please sign in to comment.