Skip to content

タッチイベントを視覚化するカスタムビューの実装 #3

タッチイベントを視覚化するカスタムビューの実装

タッチイベントを視覚化するカスタムビューの実装 #3

name: "Git-flow merge"
on:
pull_request:
types: [edited]
branches: [master]
jobs:
check_that_current_pr_is_complete:
if: ${{ github.repository != 'plaidev/karte-android-sdk' && github.event.pull_request.state == 'open' }}
permissions:
pull-requests: read
runs-on: ubuntu-latest
outputs:
completed: ${{ steps.check_completion.outputs.completed }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GH_ACCESS_TOKEN }}
all_but_latest: true
- name: Check Completion
id: check_completion
run: |
body=$(echo '${{ github.event.pull_request.body }}')
incomplete_task=$(echo $body | sed -n "/\- \[ \]/ p")
if [ -z $incomplete_task ]; then
echo "::set-output name=completed::true"
else
echo "::set-output name=completed::false"
fi
perform_merge:
permissions:
contents: write
needs: [check_that_current_pr_is_complete]
runs-on: ubuntu-latest
if: needs.check_that_current_pr_is_complete.outputs.completed == 'true'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "${{ github.actor }}"
git fetch
- name: Merge to develop
run: |
git checkout develop
git merge origin/${{ github.head_ref }} --no-ff -m "Merge ${{ github.head_ref }} into develop"
- name: Push to develop
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
branch: develop
- name: Merge to master
run: |
git checkout master
git merge origin/${{ github.head_ref }} --no-ff -m "Merge ${{ github.head_ref }} into master"
- name: Push to master
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
branch: master