Skip to content

Merge pull request #2302 from buildpacks/dependabot/go_modules/go-dep… #155

Merge pull request #2302 from buildpacks/dependabot/go_modules/go-dep…

Merge pull request #2302 from buildpacks/dependabot/go_modules/go-dep… #155

Workflow file for this run

# Merges changes to release branches back into main.
name: release-merge
on:
push:
branches:
- 'release/**'
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Merge
run: |
echo '> Configuring ssh...'
SSH_HOME="${HOME}/.ssh"
mkdir -p "${SSH_HOME}"
chmod 700 "${SSH_HOME}"
echo '> Starting ssh-agent...'
eval $(ssh-agent)
echo '> Add Github to known_hosts...'
ssh-keyscan -H github.com >> "${SSH_HOME}/known_hosts"
chmod 644 "${SSH_HOME}/known_hosts"
echo '> Adding DEPLOY_KEY...'
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
echo '> Attempting merge...'
ls -al
git config --global user.name "github-bot"
git config --global user.email "[email protected]"
git clone [email protected]:${GITHUB_REPOSITORY}.git
cd pack
git checkout main
git merge origin/${GITHUB_REF#refs/heads/} --no-edit
git show -1
git push