Skip to content

Commit

Permalink
set vars correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Oct 16, 2024
1 parent 38ae761 commit 326080b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/autoupdate-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
git config --global user.name "github-actions[bot]"
git add .
git commit --allow-empty -m "fix: update OpenAPI spec"
- run: echo "API_DIFF_OLD_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Set old commit for SDK API diff
run: echo "API_DIFF_OLD_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Run generation
working-directory: ./tools
run: |
Expand All @@ -44,7 +45,9 @@ jobs:
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git add . && git commit -m "fix: Generated SDK source code and docs"
- run: echo "API_DIFF_NEW_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Set new commit for SDK API diff
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: echo "API_DIFF_NEW_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Release updates
if: steps.verify-changed-files.outputs.files_changed == 'true'
working-directory: ./tools
Expand Down
2 changes: 1 addition & 1 deletion tools/releaser/scripts/breaking-changes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ script_path=$(dirname "$0")
echo "Installing go-apidiff"
go install github.com/joelanford/go-apidiff@latest > /dev/null

echo "Running breaking changes check for $GIT_BASE_REF"
echo "Running breaking changes check comparing commits ${API_DIFF_OLD_COMMIT} and ${API_DIFF_NEW_COMMIT}"

pushd "$script_path/../../../" || exit ## workaround for --repo-path="../" not working
echo "Changed directory to $(pwd)"
Expand Down

0 comments on commit 326080b

Please sign in to comment.