Skip to content

Commit

Permalink
Fix testing PR from repository fork
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Jun 17, 2024
1 parent c07d899 commit 7f51ef0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ jobs:
- name: Short commit SHA
id: short
run: |
REPO="https://github.com/${{github.event.pull_request.head.repo.full_name}}.git"
SHA="${{github.event.pull_request.head.sha}}${{ github.sha }}"
SHORT_SHA=${SHA:0:7}
echo "repo: $REPO"
echo "repo=$REPO" >> $GITHUB_OUTPUT
echo "sha: $SHORT_SHA"
echo "sha=$SHORT_SHA" >> $GITHUB_OUTPUT
- name: Build Docker image
Expand All @@ -60,6 +63,7 @@ jobs:
context: .
push: false
build-args: |
WEBRCI_REPO=${{ steps.short.outputs.repo }}
WEBRCI_SHA=${{ steps.short.outputs.sha }}
MAKE_LIBS_TARGET=default
build-nix:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ RUN rig add 4.4.0 --without-pak
RUN /opt/R/current/bin/R -q -e 'install.packages("pak", lib = .Library)'

# Download webR and configure for LLVM flang
RUN git clone https://github.com/r-wasm/webr.git /opt/webr
ARG WEBRCI_REPO="https://github.com/r-wasm/webr.git"
RUN git clone ${WEBRCI_REPO} /opt/webr
WORKDIR /opt/webr
ARG WEBRCI_SHA=HEAD
RUN git checkout ${WEBRCI_SHA}
Expand Down

0 comments on commit 7f51ef0

Please sign in to comment.