fix: add signature used by mls client (WPB-15040) (#3743) #302
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy ADR Docs | |
on: | |
push: | |
branches: [ 'develop' ] | |
pull_request: | |
types: [ opened, synchronize ] | |
paths: [ 'docs/adr/**' ] | |
permissions: | |
contents: write | |
pull-requests: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.ANDROID_BOB_GH_TOKEN }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- name: Install pip for adr-viewer | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-pip | |
pip install adr-viewer | |
- name: Generate ADR docs | |
run: | | |
adr-viewer --adr-path docs/adr --output docs/index.html | |
- name: Deploy docs π | |
if: github.event_name == 'push' && github.ref_name == 'develop' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
clean: false | |
folder: docs | |
target-folder: docs | |
- name: Comment new ADR(s) in PR | |
if: github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request' | |
run: | | |
echo "# New ADR(s) in this PR π:" > /tmp/new-adr | |
gh pr diff ${{ github.event.pull_request.number }} --name-only | grep docs/adr | xargs cat >> /tmp/new-adr | |
gh pr comment ${{ github.event.pull_request.number }} -F /tmp/new-adr --edit-last || gh pr comment ${{ github.event.pull_request.number }} -F /tmp/new-adr |