Update CLI to v3.5.1 #42
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
on: | |
- pull_request | |
jobs: | |
install_formula: | |
runs-on: macos-11 | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v2 | |
- | |
name: Install rainforest-cli | |
run: | | |
brew install --formula ./Formula/rainforest-cli.rb | |
- | |
name: Check rainforest works | |
env: | |
URL: ${{ github.event.pull_request.comments_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REF: ${{ github.event.pull_request.head.ref }} | |
run: | | |
VERSION=`rainforest --version --skip-update` | |
echo $VERSION | |
curl \ | |
-X POST \ | |
$URL \ | |
-H "Content-Type: application/json" \ | |
-H "Authorization: token $GITHUB_TOKEN" \ | |
--data "{ \"body\": \"This update reported its version as \`$VERSION\` and we're on branch \`$REF\` 🤞\" }" |