Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork81
Update workflow and make it reusable#315
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
26 commits Select commitHold shift + click to select a range
a67273b
Update to Python 3.11
BlueGlassBlock8602d5e
Update python-311.yml
BlueGlassBlock3554fc2
Fix transifex cli position
BlueGlassBlockc259ee1
Fix config generation script
BlueGlassBlock6d03983
Add 3.11 to workflows
BlueGlassBlockc3d4b1a
chore: update 3.11 links and badges
BlueGlassBlocke01effb
chore: Add 3.12 to workflow
BlueGlassBlockb40b5b2
Commit
Dumeng0738865
commit
Dumeng2e03473
Remove token
Dumeng2a26dfb
fix
Dumeng3040c4b
remove venv
Dumeng1599860
faster
Dumeng296c3d3
search
Dumeng52551de
cache
Dumeng73af92c
update cache path
Dumeng7c46dfd
remove cache
Dumengc6da1da
Add reusable workflow
Dumengf48c031
Merge branch 'master' into master
Dumeng2200481
Update all workflows
Dumeng7ab7c93
Update workflows schedule
Dumeng0147e2b
Use docsbuild-scripts to build
Dumeng345361d
install python docs packages
Dumeng8bb7d44
Add docsbuild-scripts repo
Dumeng0aa5646
remvoe docsbuild-scripts
Dumengc2b3e96
Add env setup
DumengFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions.github/scripts/build.sh
This file contains hidden or 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
3 changes: 1 addition & 2 deletions.github/scripts/commit.sh
This file contains hidden or 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 |
---|---|---|
@@ -11,5 +11,4 @@ if ! git status -s|grep '\.po'; then | ||
fi | ||
git add . | ||
git commit -m '[po] auto sync' | ||
git push |
8 changes: 1 addition & 7 deletions.github/scripts/prepare.sh
This file contains hidden or 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 |
---|---|---|
@@ -2,10 +2,4 @@ | ||
set -ex | ||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash |
3 changes: 1 addition & 2 deletions.github/scripts/update.sh
This file contains hidden or 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,5 +1,4 @@ | ||
#!/bin/bash | ||
cd docs || exit 1 | ||
$(realpath ../tx) pull --languages "$LOCALE" -t --use-git-timestamps --workers 25 --silent |
25 changes: 6 additions & 19 deletions.github/workflows/python-310.yml
This file contains hidden or 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
25 changes: 6 additions & 19 deletions.github/workflows/python-311.yml
This file contains hidden or 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
24 changes: 5 additions & 19 deletions.github/workflows/python-312.yml
This file contains hidden or 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
24 changes: 5 additions & 19 deletions.github/workflows/python-37.yml
This file contains hidden or 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
24 changes: 5 additions & 19 deletions.github/workflows/python-38.yml
This file contains hidden or 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
25 changes: 6 additions & 19 deletions.github/workflows/python-39.yml
This file contains hidden or 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
41 changes: 41 additions & 0 deletions.github/workflows/sync.yml
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Reusable workflow example | ||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
secrets: | ||
TRANSIFEX_APIKEY: | ||
required: true | ||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
env: | ||
LOCALE: zh_CN | ||
VERSION: ${{ inputs.version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout CPython | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'python/cpython' | ||
ref: ${{env.VERSION}} | ||
path: cpython | ||
- name: Checkout Current Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{env.VERSION}} | ||
path: docs | ||
- name: prepare | ||
run: .github/scripts/prepare.sh | ||
- name: update | ||
run: .github/scripts/update.sh | ||
env: | ||
TX_TOKEN: ${{ secrets.TRANSIFEX_APIKEY }} | ||
- name: build | ||
run: .github/scripts/build.sh | ||
- name: commit | ||
run: .github/scripts/commit.sh |
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.