You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Install the same version of Bashbrew consistently in all other GitHub Actions'
4
+
inputs:
5
+
build:
6
+
default: 'host'# or 'docker' or 'none'
7
+
runs:
8
+
using: 'composite'
9
+
steps:
10
+
11
+
# these two version numbers are intentionally as close together as I could possibly get them because no matter what I tried, GitHub will not allow me to DRY them (can't have any useful variables in `uses:` and can't even have YAML references to steal it in `env:` or something)
Copy file name to clipboardExpand all lines: .github/workflows/munge-pr.yml
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ jobs:
21
21
name: Gather Metadata
22
22
runs-on: ubuntu-latest
23
23
steps:
24
-
- uses: actions/checkout@v2
24
+
- uses: actions/checkout@v3
25
25
with:
26
26
# ideally this would be "github.event.pull_request.merge_commit_sha" but according to https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls#get-a-pull-request if "mergeable" is null (meaning there's a background job in-progress to check mergeability), that value is undefined...
# again, this would ideally be "github.event.pull_request.merge_commit_sha" but we might not have that yet when this runs, so we compromise by checkout out the latest code from the target branch (so we get the latest "diff-pr.sh" script to run)
96
96
ref: ${{ github.event.pull_request.base.ref }}
97
97
fetch-depth: 0
98
+
- uses: ./.github/workflows/.bashbrew
99
+
with:
100
+
build: 'docker'
98
101
- name: Prepare Environment
99
102
run: |
100
-
# this mimics "test-pr.sh", but without running repo-local scripts (to avoid CVE-2020-15228 via the scripts being updated to write nasty things to $GITHUB_ENV)
0 commit comments