Skip to content

Commit

Permalink
ci: Fix PR generation for snapshot tests for vendoring
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 11, 2024
1 parent ecec161 commit 5e44e8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
workflow_dispatch:
inputs:
ref:
description: "Branch or tag to check out"
description: "Branch, tag, or commit to check out"
required: false
default: "main"
versions-matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-snapshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
id: cpr
uses: peter-evans/create-pull-request@v6
with:
base: ${{ github.head_ref }}
base: ${{ inputs.ref || github.head_ref }}
branch: snapshot-${{ github.ref_name }}-${{ github.job }}-${{ steps.matrix-desc.outputs.branch }}
delete-branch: true
title: "test: Snapshot updates for ${{ github.job }} (${{ steps.matrix-desc.outputs.text }})"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vendor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ jobs:
git checkout -b vendor
if git push -u origin HEAD; then
gh pr create --fill-first
gh workflow run rcc -f ref=$(git rev-parse HEAD)
gh workflow run rcc -f ref=vendor
gh pr merge --auto --squash
fi

0 comments on commit 5e44e8f

Please sign in to comment.