Skip to content

tracking_plan_updated #56

tracking_plan_updated

tracking_plan_updated #56

Workflow file for this run

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