-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update markdown md CI #2585
Closed
Closed
Update markdown md CI #2585
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
094d705
update markdown md fix
sukantoraymond 5925fd0
update flag
sukantoraymond b24f7cc
update flag
sukantoraymond 9372f8b
test changes
sukantoraymond 27d7880
Merge branch 'update-markdown-fix' of github.com:ava-labs/avalanche-c…
sukantoraymond de90d77
test changes
sukantoraymond 91a283e
undo chan ge
sukantoraymond 408fbf1
update ci
sukantoraymond File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
name: Update Markdown | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
types: [approved] # Runs only when the PR is approved | ||
|
||
jobs: | ||
update-md: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repo | ||
- name: Check out the repo on the PR branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
@@ -40,7 +36,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
# If you need additional dependencies, install them here | ||
# Add any other dependencies if required | ||
# pip install -r requirements.txt | ||
|
||
- name: Generate CLI MD | ||
|
@@ -53,14 +49,14 @@ jobs: | |
run: | | ||
python .github/scripts/sdk_doc.py | ||
|
||
- name: Commit files | ||
uses: ChromeQ/[email protected] | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
cmd/commands.md | ||
sdk/SDK.md | ||
commit-message: "chore: Update MD files [skip ci]" | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Commit and push changes to the PR branch | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git checkout ${{ github.head_ref }} # Ensure we're on the PR branch | ||
|
||
git add cmd/commands.md sdk/SDK.md | ||
git commit -m "chore: Update MD files" || echo "No changes to commit" | ||
|
||
git push origin ${{ github.head_ref }} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its test change to see if it will be removed before this pr is merged by the CI