Skip to content

fix: polygon edge version info #12

fix: polygon edge version info

fix: polygon edge version info #12

Workflow file for this run

---
name: Release
on: # yamllint disable-line rule:truthy
push:
branches-ignore:
- "**"
tags:
- "v*.*.*"
# to be used by fork patch-releases ^^
- "v*.*.*-*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Prepare
id: prepare
run: |
TAG=${GITHUB_REF#refs/tags/}
echo tag_name=${TAG} >> $GITHUB_OUTPUT
echo release_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ") >> $GITHUB_RELEASE_TIME
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Run GoReleaser
run: |
echo $(date -u +"%Y-%m-%dT%H:%M:%SZ") >> $RELEASE_TIME
docker run \
--rm \
--privileged \
-e CGO_ENABLED=1 \
-e GITHUB_TOKEN \
-e SLACK_WEBHOOK \
-e GITHUB_REF_NAME=${GITHUB_REF_NAME} \
-e GITHUB_SHA=${GITHUB_SHA} \
-e GITHUB_REF=${GITHUB_REF} \
-e RELEASE_TIME=${RELEASE_TIME} \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--rm-dist --skip-validate
env:
PACKAGE_NAME: github.com/topos-protocol/polygon-edge
GOLANG_CROSS_VERSION: v1.20.5
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.prepare.outputs.tag_name }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
GITHUB_REF_NAME: ${{ GITHUB_REF_NAME }}

Check failure on line 61 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 61, Col: 28): Unrecognized named-value: 'GITHUB_REF_NAME'. Located at position 1 within expression: GITHUB_REF_NAME