mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 09:03:02 +08:00
Format YAML
This commit is contained in:
parent
d44d5b0f62
commit
a6c9e1103c
5 changed files with 12 additions and 15 deletions
6
.github/workflows/uffizzi-build.yml
vendored
6
.github/workflows/uffizzi-build.yml
vendored
|
@ -1,10 +1,9 @@
|
||||||
name: Preview (build)
|
name: Preview (build)
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened,synchronize,reopened,closed]
|
types: [opened, synchronize, reopened, closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-application:
|
build-application:
|
||||||
name: Build PR image
|
name: Build PR image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -36,7 +35,6 @@ jobs:
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
|
||||||
render-compose-file:
|
render-compose-file:
|
||||||
name: Render Docker Compose file
|
name: Render Docker Compose file
|
||||||
# Pass output of this workflow to another triggered by `workflow_run` event.
|
# Pass output of this workflow to another triggered by `workflow_run` event.
|
||||||
|
@ -60,7 +58,7 @@ jobs:
|
||||||
path: docker-compose.rendered.yml
|
path: docker-compose.rendered.yml
|
||||||
retention-days: 2
|
retention-days: 2
|
||||||
- name: Serialize PR Event to File
|
- name: Serialize PR Event to File
|
||||||
run: |
|
run: |
|
||||||
cat << EOF > event.json
|
cat << EOF > event.json
|
||||||
${{ toJSON(github.event) }}
|
${{ toJSON(github.event) }}
|
||||||
|
|
||||||
|
|
5
.github/workflows/uffizzi-preview.yml
vendored
5
.github/workflows/uffizzi-preview.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cache-compose-file:
|
cache-compose-file:
|
||||||
name: Cache Docker Compose file
|
name: Cache Docker Compose file
|
||||||
|
@ -16,7 +15,7 @@ jobs:
|
||||||
compose-file-cache-key: ${{ env.COMPOSE_FILE_HASH }}
|
compose-file-cache-key: ${{ env.COMPOSE_FILE_HASH }}
|
||||||
pr-number: ${{ env.PR_NUMBER }}
|
pr-number: ${{ env.PR_NUMBER }}
|
||||||
steps:
|
steps:
|
||||||
- name: 'Download artifacts'
|
- name: "Download artifacts"
|
||||||
# Fetch output (zip archive) from the workflow run that triggered this workflow.
|
# Fetch output (zip archive) from the workflow run that triggered this workflow.
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
|
@ -37,7 +36,7 @@ jobs:
|
||||||
});
|
});
|
||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/preview-spec.zip`, Buffer.from(download.data));
|
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/preview-spec.zip`, Buffer.from(download.data));
|
||||||
- name: 'Unzip artifact'
|
- name: "Unzip artifact"
|
||||||
run: unzip preview-spec.zip
|
run: unzip preview-spec.zip
|
||||||
- name: Read Event into ENV
|
- name: Read Event into ENV
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue