Skip to content

Commit

Permalink
fixup fast-forward PR job (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos authored Jul 8, 2024
1 parent 59ccf36 commit 8471e97
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/fast-forward.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,21 @@ jobs:
# ${{ steps.branch.outputs.target }} == "moonray/main", "moonray/release-1.30"
id: branch
run: |
NAME=${${{ github.ref }}#refs/heads/} # strip off refs/heads/ if it exists
REF="${{ github.ref }}"
NAME="${REF#refs/heads/}" # strip off refs/heads/ if it exists
echo "upstream=$NAME" >> "$GITHUB_OUTPUT"
echo "target=${{ matrix.patch }}/$NAME" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@v4
with:
ref: "${{ steps.branch.outputs.target }}"
ssh-key: ${{ secrets.DEPLOY_KEY_TO_UPDATE_STRICT_BRANCH }}
- name: Checkout branches
run: |
git checkout ${{ steps.branch.outputs.upstream }}
git checkout ${{ steps.branch.outputs.target }}
- name: Merge ${{ steps.branch.outputs.upstream }} into ${{ steps.branch.outputs.target }}
run: |
git checkout ${{ steps.branch.outputs.target }}
git merge origin/${{ steps.branch.outputs.upstream }} -m "Auto-merge ${{ steps.branch.outputs.upstream }}"
- name: Create pull request
uses: peter-evans/create-pull-request@v6
Expand Down

0 comments on commit 8471e97

Please sign in to comment.