fix: workflow fixes
This commit is contained in:
parent
7d36d63eb1
commit
fbd1f6334a
2 changed files with 2 additions and 4 deletions
|
|
@ -10,12 +10,11 @@ env:
|
||||||
CURRENT_BRANCH: ${{ github.ref_name }}
|
CURRENT_BRANCH: ${{ github.ref_name }}
|
||||||
TARGET_BRANCH: ${{ vars.SYNC_TARGET_BRANCH_NAME }} # The target branch that you would like to merge changes like develop
|
TARGET_BRANCH: ${{ vars.SYNC_TARGET_BRANCH_NAME }} # The target branch that you would like to merge changes like develop
|
||||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Personal access token required to modify contents and workflows
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Personal access token required to modify contents and workflows
|
||||||
REVIEWER: ${{ vars.SYNC_PR_REVIEWER }}
|
|
||||||
ACCOUNT_USER_NAME: ${{ vars.ACCOUNT_USER_NAME }}
|
ACCOUNT_USER_NAME: ${{ vars.ACCOUNT_USER_NAME }}
|
||||||
ACCOUNT_USER_EMAIL: ${{ vars.ACCOUNT_USER_EMAIL }}
|
ACCOUNT_USER_EMAIL: ${{ vars.ACCOUNT_USER_EMAIL }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Create_PR:
|
create_pull_request:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
@ -35,9 +35,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
RUN_ID="${{ github.run_id }}"
|
|
||||||
TARGET_REPO="${{ vars.SYNC_TARGET_REPO }}"
|
TARGET_REPO="${{ vars.SYNC_TARGET_REPO }}"
|
||||||
TARGET_BRANCH="sync/${RUN_ID}"
|
TARGET_BRANCH="${{ vars.SYNC_TARGET_BRANCH_NAME }}"
|
||||||
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}"
|
SOURCE_BRANCH="${{ env.SOURCE_BRANCH_NAME }}"
|
||||||
|
|
||||||
git checkout $SOURCE_BRANCH
|
git checkout $SOURCE_BRANCH
|
||||||
Loading…
Add table
Add a link
Reference in a new issue