test #5
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: Update Release | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get latest release from tailscale | |
id: get_latest_release | |
uses: octokit/[email protected] | |
with: | |
route: GET /repos/tailscale/tailscale/releases/latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: "echo latest release: '${{ steps.get_latest_release.outputs.data }}'" | |
- run: "echo latest release version: '${{ steps.get_latest_release.outputs.data.name }}'" | |
- run: "echo Release could not be found. Request failed with status '${{ steps.get_release.outputs.status }}'" | |
if: ${{ failure() }} |