Skip to content

Shubham | Lightsail Instance Deployment #74

Shubham | Lightsail Instance Deployment

Shubham | Lightsail Instance Deployment #74

name: PR detect breaking changes
on: pull_request
jobs:
build:
name: Detect
runs-on: ubuntu-latest
env:
GITHUB_STEP_NUMBER: 7
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
ref: 'main'
path: grafana-current
- name: Setup environment
uses: actions/[email protected]
with:
node-version: '16'
- name: Get link for the Github Action job
id: job
uses: actions/github-script@v5
with:
script: |
const script = require('./.github/workflows/scripts/pr-get-job-link.js')
await script({github, context, core})
- name: Install dependencies
run: yarn install --immutable
- name: Install dependencies
run: |
cd grafana-current
yarn install --immutable
- name: Build packages
run: yarn packages:build
- name: Build packages
run: |
cd grafana-current
yarn packages:build
- name: Detect breaking changes
id: breaking-changes
run: ./scripts/check-breaking-changes.sh
env:
FORCE_COLOR: 3
GITHUB_JOB_LINK: ${{ steps.job.outputs.link }}
- name: Persisting the check output
run: |
mkdir -p ./levitate
echo "{ \"exit_code\": ${{ steps.breaking-changes.outputs.is_breaking }}, \"message\": \"${{ steps.breaking-changes.outputs.message }}\", \"job_link\": \"${{ steps.job.outputs.link }}#step:${GITHUB_STEP_NUMBER}:1\" }" > ./levitate/result.json
- name: Upload check output as artifact
uses: actions/upload-artifact@v2
with:
name: levitate
path: levitate/
- name: Exit
run: exit ${{ steps.breaking-changes.outputs.is_breaking }}
shell: bash