Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d3ada9

Browse files
authored
Merge pull request#110 from mattwang44/fix/sync-workflow/edit-on-branch
fix(action): allow merging cpython on existing branch
2 parents9c34230 +841a567 commit2d3ada9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎.github/workflows/py39-sync-cpython.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ jobs:
1212
runs-on:ubuntu-latest
1313
env:
1414
VERSION:"3.9"
15+
BRANCH:"cron/sync/3.9"
1516
steps:
1617
-uses:actions/checkout@v2
1718
with:
1819
ref:${{ env.VERSION }}
1920

21+
-name:Get the changes on branch (if exists)
22+
continue-on-error:true
23+
run:|
24+
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
25+
git reset --hard ${{ env.BRANCH }}
26+
2027
-name:Set env
2128
run:echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV
2229

@@ -41,8 +48,8 @@ jobs:
4148
committer:GitHub <noreply@github.com>
4249
author:github-actions[bot] <github-actions[bot]@users.noreply.github.com>
4350
base:${{ env.VERSION }}
44-
branch:cron/sync/${{ env.VERSION }}
45-
delete-branch:true
51+
branch:${{ env.BRANCH }}
52+
delete-branch:false
4653
title:'Sync with CPython ${{ env.VERSION }}'
4754
body:|
4855
Sync with CPython ${{ env.VERSION }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp