mirror of
https://github.com/RetroDECK/components-template.git
synced 2024-11-22 03:15:37 +00:00
Fixing PR variables
This commit is contained in:
parent
e3022078cc
commit
1b8e1ac05b
12
.github/workflows/pr_from_upstream.yml
vendored
12
.github/workflows/pr_from_upstream.yml
vendored
|
@ -66,12 +66,12 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Create Pull Request
|
||||
if: success() && steps.push.outputs.BRANCH_NAME != '' # Only run if there are changes
|
||||
if: success() && steps.push.outputs.branch != '' # Only run if there are changes
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
token: ${{ steps.generate-rekku-token.outputs.token }}
|
||||
token: ${{ steps.generate-rekku-token.outputs.token || secrets.GITHUB_TOKEN }}
|
||||
commit-message: "Sync with upstream changes from $UPSTREAM_REPO"
|
||||
branch: ${{ steps.push.outputs.BRANCH_NAME }}
|
||||
branch: ${{ env.BRANCH_NAME }}
|
||||
title: "Sync with upstream $UPSTREAM_REPO"
|
||||
body: |
|
||||
This PR merges the latest changes from the upstream repository:
|
||||
|
@ -83,12 +83,12 @@ jobs:
|
|||
|
||||
1. **Fetch the remote branch**:
|
||||
```bash
|
||||
git fetch origin ${{ steps.push.outputs.BRANCH_NAME }}
|
||||
git fetch origin ${{ env.BRANCH_NAME }}
|
||||
```
|
||||
|
||||
2. **Checkout the branch**:
|
||||
```bash
|
||||
git checkout ${{ steps.push.outputs.BRANCH_NAME }}
|
||||
git checkout ${{ env.BRANCH_NAME }}
|
||||
```
|
||||
|
||||
3. **Merge the upstream branch manually**:
|
||||
|
@ -110,6 +110,6 @@ jobs:
|
|||
|
||||
6. **Push the resolved branch**:
|
||||
```bash
|
||||
git push origin ${{ steps.push.outputs.BRANCH_NAME }}
|
||||
git push origin ${{ env.BRANCH_NAME }}
|
||||
```
|
||||
base: $TARGET_BRANCH
|
||||
|
|
Loading…
Reference in a new issue