tracking_plan_updated #56
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: Sandbox Update > New Branch | |
on: | |
repository_dispatch: | |
types: | |
- tracking_plan_updated | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create branch | |
uses: peterjgrainger/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
branch: ${{ github.event.client_payload.timestamp }} | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
ref: ${{ github.event.client_payload.timestamp }} | |
- name: Commit Update Tracking Plan | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SEGMENT_CONFIG_API_TOKEN: ${{ secrets.SEGMENT_CONFIG_API_TOKEN }} | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
npx typewriter update | |
git add . | |
git commit -m "regenerated plan.json" | |
git push |