Merge pull request #40 from lpm0073/dependabot/github_actions/actions… #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------ | |
# Lawrence McDaniel - https://lawrencemcdaniel.com | |
# Version Bump Workflow | |
# | |
# Used mostly to propagate Dependabot pushed to main to the next branch. Use | |
# cases: | |
# - Dependabot pushes to main | |
# - Manual push to main | |
# - back propagation of modifications to __version__.py | |
#------------------------------------------------------------------------------ | |
name: Merge main into next | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Merge main into next | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git checkout main | |
git pull | |
git checkout next | |
git merge main | |
git push https://${{ secrets.PAT }}@github.com/${{ github.repository }}.git HEAD:next | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} |