Skip to content

Build and Release

Build and Release #4

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Debugging - Show README content
run: cat ./packages/core/README.md
- name: Update README.md
run: |
sed -i "s/releases\/download\/.*\/ic-reactor-core.min.js/releases\/download\/v1.1.2\/ic-reactor-core.min.js/" ./packages/core/README.md
- name: Commit and Push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./packages/core/README.md
git commit -m "Update README.md to point to the latest release(v1.1.2)"
git -c http.extraheader="AUTHORIZATION: bearer ${{ secrets.RELEASE_TOKEN }}" push