This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matt Oswalt <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,22 +41,39 @@ jobs: | |
# ---------------------------------------- | ||
|
||
|
||
- name: Dispatch to other repo | ||
id: preview_dispatch | ||
- name: Create Preview | ||
id: create_preview | ||
run: | | ||
curl -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/nre-learning/previews/dispatches -d '{"event_type":"preview_image_build"}' | ||
echo ::set-output name=preview_id::$(./create-preview.sh | jq -r '.ID') | ||
# GITHUB_SHA is the id of the merge commit on the PR branch. | ||
|
||
- name: Build Preview Images | ||
id: build_preview_images | ||
run: | | ||
echo $PREVIEW_ID && echo $GITHUB_REF && echo $PREVIEW_GIT_REF && echo $PREVIEW_CURRICULUM_REPO | ||
env: | ||
PREVIEW_ID: ${{ steps.create_preview.outputs.preview_id }} | ||
# PREVIEW_ID: ${{needs.prebuild.outputs.preview_id}} | ||
PREVIEW_GIT_REF: ${{ github.event.pull_request.head.sha || github.sha }} | ||
# echo ${{ github.event.pull_request.head.sha }} | ||
PREVIEW_BRANCH: "" | ||
PREVIEW_CURRICULUM_REPO: "" | ||
# TODO - pass token in here vs using your own personal token, just like wait for check action does | ||
# (I believe this github token is passed even for PRs) | ||
|
||
|
||
# https://github.com/marketplace/actions/wait-for-check | ||
# - name: Wait for build to succeed | ||
# uses: fountainhead/[email protected] | ||
# id: wait-for-build | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# checkName: build | ||
# ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
|
||
|
||
# #/////////////////////// | ||
|
||
# - name: Create Preview | ||
# id: create_preview | ||
# run: | | ||
# echo ::set-output name=preview_id::$(./create-preview.sh | jq -r '.ID') | ||
|
||
# - name: Get Buildables | ||
# id: get_buildables | ||
# run: | | ||
|