Skip to content

Commit daf760c

Browse files
committed
Update GitHub Actions from "actions/checkout@v1" to "v2"
1 parent 9cd99b2 commit daf760c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ jobs:
1818
outputs:
1919
strategy: ${{ steps.generate-jobs.outputs.strategy }}
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v2
2222
- id: generate-jobs
2323
name: Generate Jobs
2424
run: |
25+
image="${GITHUB_REPOSITORY##*/}"
26+
image="${image#docker-}"
27+
export GITHUB_REPOSITORY="$image"
2528
git clone --depth 1 https://github.com/docker-library/bashbrew.git -b master ~/bashbrew
26-
strategy="$(GITHUB_REPOSITORY='bash' ~/bashbrew/scripts/github-actions/generate.sh)"
29+
strategy="$(~/bashbrew/scripts/github-actions/generate.sh)"
2730
jq . <<<"$strategy" # sanity check / debugging aid
2831
echo "::set-output name=strategy::$strategy"
2932
@@ -33,7 +36,7 @@ jobs:
3336
name: ${{ matrix.name }}
3437
runs-on: ${{ matrix.os }}
3538
steps:
36-
- uses: actions/checkout@v1
39+
- uses: actions/checkout@v2
3740
- name: Prepare Environment
3841
run: ${{ matrix.runs.prepare }}
3942
- name: Pull Dependencies

0 commit comments

Comments
 (0)