-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Remove the
git-auto-commit
dependency (#3083)
- Loading branch information
Showing
2 changed files
with
14 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,19 +36,14 @@ jobs: | |
pip install tomlkit | ||
python scripts/pr-number-assign.py ${{ github.event.pull_request.number }} | ||
- name: Extract the author information | ||
id: get_author_info | ||
- name: Make commit message for changing change log file | ||
if: ${{ steps.assign_pr_number.outputs.has_renamed_pairs == 'true' }} | ||
run: | | ||
git add changes/*.md | ||
author_name=$(git show -q --pretty='format:%an') | ||
author_email=$(git show -q --pretty='format:%ae') | ||
echo "Retrieved author information: $author_name <$author_email>" | ||
echo "name=$author_name" >> $GITHUB_OUTPUT | ||
echo "email=$author_email" >> $GITHUB_OUTPUT | ||
- name: Make commit message for changing change log file | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: ${{ steps.assign_pr_number.outputs.has_renamed_pairs == 'true' }} | ||
with: | ||
commit_author: ${{ steps.get_author_info.outputs.name }} <${{ steps.get_author_info.outputs.email }}> | ||
commit_message: "docs: Rename the news fragment with the PR number\n\n${{ join(fromJSON(steps.assign_pr_number.outputs.rename_results), '\n') }}" | ||
git commit \ | ||
-m "docs: Rename the news fragment with the PR number\n\n${{ join(fromJSON(steps.assign_pr_number.outputs.rename_results), '\n') }}" \ | ||
--author="$author_name <$author_email>" \ | ||
--trailer "Co-authored-by: octodog <[email protected]>" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,19 +55,16 @@ jobs: | |
- name: Create GraphQL schema dump | ||
run: | | ||
./backend.ai mgr api dump-gql-schema --output src/ai/backend/manager/api/schema.graphql | ||
- name: Extract the author information | ||
id: get_author_info | ||
- name: Make commit message for changing change log file | ||
run: | | ||
git add src/ai/backend/manager/api/schema.graphql | ||
author_name=$(git show -q --pretty='format:%an') | ||
author_email=$(git show -q --pretty='format:%ae') | ||
echo "Retrieved author information: $author_name <$author_email>" | ||
echo "name=$author_name" >> $GITHUB_OUTPUT | ||
echo "email=$author_email" >> $GITHUB_OUTPUT | ||
- name: Make commit message for changing change log file | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_author: ${{ steps.get_author_info.outputs.name }} <${{ steps.get_author_info.outputs.email }}> | ||
commit_message: 'chore: update GraphQL schema dump' | ||
git commit \ | ||
-m "chore: update GraphQL schema dump" \ | ||
--author="$author_name <$author_email>" \ | ||
--trailer "Co-authored-by: octodog <[email protected]>" | ||
git push | ||
graphql-inspector: | ||
needs: graphql-updated | ||
|