This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
clean up #3968
Workflow file for this run
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
name: Preview | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize, closed] | |
jobs: | |
setup: | |
# this job requires secrets, which cannot be shared with forks | |
# so run only from the original repository | |
if: | | |
(github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize') && | |
github.event.pull_request.head.repo.full_name == github.repository && | |
github.event.pull_request.user.login != 'gitlocalize-app[bot]' | |
uses: Qiskit/gh-actions/.github/workflows/code-engine-preview.yml@main | |
with: | |
code_engine_project: platypus-preview | |
docker_image_name: platypus | |
clone_textbook_repo: true | |
secrets: | |
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }} | |
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }} | |
ibmid_client_id: ${{ secrets.STAGING_IBMID_CLIENT_ID }} | |
ibmid_client_secret: ${{ secrets.STAGING_IBMID_CLIENT_SECRET }} | |
mongodb_uri: ${{ secrets.STAGING_MONGODB_URI }} | |
textbook_repo_clone_key: ${{ secrets.TEXTBOOK_REPO_CLONE_KEY }} | |
teardown: | |
# this job requires secrets, which cannot be shared with forks | |
# so run only from the original repository | |
if: | | |
github.event.action == 'closed' && | |
github.event.pull_request.head.repo.full_name == github.repository && | |
github.event.pull_request.user.login != 'gitlocalize-app[bot]' | |
uses: Qiskit/gh-actions/.github/workflows/code-engine-cleanup.yml@main | |
with: | |
code_engine_project: platypus-preview | |
docker_image_name: platypus | |
secrets: | |
ibmcloud_account: ${{ secrets.IBMCLOUD_ACCOUNT }} | |
ibmcloud_api_key: ${{ secrets.IBMCLOUD_API_KEY }} |