Merge pull request #44 from ASFHyP3/develop #7
Workflow file for this run
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
name: Write release and finish | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
finish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.TOOLS_BOT_PAK }} | |
- name: Create Release | |
uses: docker://antonyurchenko/git-release:latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOOLS_BOT_PAK }} | |
ALLOW_TAG_PREFIX: "true" | |
RELEASE_NAME_PREFIX: "ASF MkDocs Theme " | |
- name: Attempt fast-forward develop from main | |
run: | | |
git fetch --prune | |
git checkout develop && git pull --ff-only | |
git merge --ff-only origin/main | |
git push | |
- name: Open PR to bring main back to develop | |
if: ${{ failure() }} | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: main | |
destination_branch: develop | |
pr_title: Pulling ${{ github.ref }} into default | |
pr_body: Fast-forward of main to default failed! | |
pr_assignee: ${{ github.actor }} | |
pr_label: tools-bot | |
pr_draft: false | |
pr_allow_empty: true | |
github_token: ${{ secrets.TOOLS_BOT_PAK }} |