pie-trigger #59
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: pie-trigger | |
on: | |
repository_dispatch: | |
types: ['pie-trigger'] | |
jobs: | |
list-snapshots: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Correctly set up environment variable for the branch name | |
- name: Set branch name | |
run: echo "BRANCH_NAME=${{ github.event.client_payload.pie-branch }}" >> $GITHUB_ENV | |
# Setup Node | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# Install dependencies | |
- name: Install dependencies | |
run: yarn | |
# Update snapshots | |
- name: Update snapshots | |
run: npx update-snapshots ${{ github.event.client_payload.snapshot-version }} ${{ github.event.client_payload.snapshot-packages }} | |
# Create PR if doesn't exist | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ secrets.CHANGESETS_TOKEN }} | |
commit-message: "feat: ${{ env.BRANCH_NAME }}" | |
branch: ${{ env.BRANCH_NAME }} | |
title: "feat: ${{ env.BRANCH_NAME }} integration" | |
body: | | |
This PR has been automatically generated as part of the test-aperture workflow from the Pie monorepo | |
draft: true |