Skip to content

Workflow file for this run

name: Update Release
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get latest release from tailscale
id: latest_release
uses: octokit/[email protected]
with:
route: GET /repos/tailscale/tailscale/releases/latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update update.json
run: |
VERSION=$(echo '${{ steps.latest_release.outputs.data }}' | jq -r '.tag_name')
CHANGELOG=$(echo '${{ steps.latest_release.outputs.data }}' | jq -r '.html_url')
jq '.version = $VERSION | .changelog = $CHANGELOG' update.json > temp.json && mv temp.json update.json
- name: Commit and push