Skip to content

Commit

Permalink
Merge pull request #41 from DeterminateSystems/fix-downstream-pr-updates
Browse files Browse the repository at this point in the history
Fix downstream PR update workflow
  • Loading branch information
lucperkins committed Jun 3, 2024
2 parents e3254b0 + 71af4a3 commit 5f7146b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/update-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
REF_URL: https://github.com/${{ github.repository }}/tree/${{ github.sha }}
GIT_USER: ${{ github.actor }}
GIT_EMAIL: ${{ github.actor }}@users.noreply.github.com
GIT_BRANCH: detsys-ts-update-${{ github.sha }}
GIT_BASE: main
GIT_HEAD: ${{ github.actor }}:detsys-ts-update-${{ github.sha }}
TARGET_REPO: ${{ github.repository_owner }}/${{ matrix.repo }}
SOURCE_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -50,6 +53,8 @@ jobs:
- name: Commit changes to package.json, pnpm-lock.yaml, and dist/
run: |
git checkout -b ${{ env.GIT_BRANCH }}
git add .
if [[ $(git status -s) ]]; then
Expand All @@ -66,6 +71,8 @@ jobs:
- name: Create pull request against ${{ env.TARGET_REPO }}
run: |
gh pr create \
--base ${{ env.GIT_BASE }} \
--head ${{ env.GIT_HEAD }} \
--repo ${{ env.TARGET_REPO }} \
--title "Update detsys-ts dependency and dist directory (trigged by ${{ env.SOURCE_REPO }})" \
--body "Bump detsys-ts to [${{ env.REF }}](${{ env.REF_URL }}) and regenerate application bundle."

0 comments on commit 5f7146b

Please sign in to comment.