Bump gutenberg from 9a9d679
to e5d0843
#1747
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: sync-android | |
on: | |
pull_request: | |
types: [labeled] | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create a WordPress-Android (WPA) PR containing changes from a Gutenberg Mobile (GBM) PR. | |
env: | |
PR: ${{ github.event.pull_request.number }} | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
run: | | |
npm run sync:android -- "--pr=$PR" | |
if: ${{ github.event_name == 'pull_request' && github.event.label.name == 'sync:android' }} | |
- name: Create a WordPress-Android (WPA) PR containing changes from a Gutenberg Mobile (GBM) Tag. | |
env: | |
TAG: ${{ github.event.release.tag_name }} | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
run: | | |
npm run sync:android -- "--tag=$TAG" | |
if: ${{ github.event_name == 'release' }} |