Skip to content

fix(postcss): use default stage 2 #1441

fix(postcss): use default stage 2

fix(postcss): use default stage 2 #1441

Workflow file for this run

name: Update docs etc
on:
pull_request:
types: [labeled]
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# Only if it contains a certain label.
if: "contains( github.event.pull_request.labels.*.name, 'eve: update docs etc')"
steps:
- name: Update labels
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TOKEN_EVE }}
script: |
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'eve: update docs etc',
});
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['[bot]: updating docs etc'],
});
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN_EVE }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- run: git checkout --track origin/${{ github.event.pull_request.head.ref }}
- run: |
git config --global user.name 'easyops-eve'
git config --global user.email '[email protected]'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
cache: yarn
- name: Cache for nx (v3)
uses: actions/cache@v4
with:
path: .cache
key: ${{ runner.os }}-nx-v3-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-nx-v3-
- run: yarn install --frozen-lockfile
- name: Build and update docs etc
run: |
npx lerna run build --scope @next-core/types || npx lerna run docs:dev --scope @next-core/types
npx lerna run build --scope @next-core/runtime || npx lerna run docs:dev --scope @next-core/runtime
env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: '0'
- name: Git commit and push
run: |
git add -A
git commit -m "chore(): update docs etc"
git push
- name: Post update labels
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TOKEN_EVE }}
script: |
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: '[bot]: updating docs etc',
});
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['[bot]: updated docs etc'],
});