Skip to content

Check token

Check token #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: read
packages: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20' # This needs to be a string!
- name: Token check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: curl -v -H "Accept: application/vnd.github+json" -H "Authorization: token $GITHUB_TOKEN" 'https://api.github.com/orgs/BuoyantIO/packages?package_type=container'

Check failure on line 34 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 34
- name: Run goreleaser release
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run make push-chart
run: make push-chart VERSION=${{ steps.get_version.outputs.VERSION }}