Skip to content

Daily release/oct 18 2024 8 50 #2632

Daily release/oct 18 2024 8 50

Daily release/oct 18 2024 8 50 #2632

name: whats-new
on:
workflow_dispatch:
pull_request:
types:
- opened
branches:
- main
env:
BOT_NAME: svc-docs-eng-opensource-bot
BOT_EMAIL: [email protected]
jobs:
update-whats-new-ids:
name: generates in-product announcements (optional)
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: develop
persist-credentials: false
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 22.4
- name: Install dependencies
run: yarn add vfile-glob@^1.0.0 to-vfile@^6.1.0
- name: Generate new IDs
run: yarn run generate-whatsnew-ids
- name: Commit changes
id: commit-changes
run: |
git config --local user.email "${{ env.BOT_EMAIL }}"
git config --local user.name "${{ env.BOT_NAME }}"
git add ./src/data/whats-new-ids.json
git diff-index --quiet HEAD ./src/data/whats-new-ids.json || git commit -m 'chore(whats-new-ids): updated ids'
echo "commit=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
id: create-pr
if: steps.commit-changes.outputs.commit == 'true'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.DOCS_ENG_BOT_TOKEN }}
title: Updated whats new ids
body: ''
branch: whats-new-id
branch-suffix: short-commit-hash
base: develop
delete-branch: true
team-reviewers: DOC