Skip to content

fix: Fix gem publisher (#15) #6

fix: Fix gem publisher (#15)

fix: Fix gem publisher (#15) #6

Workflow file for this run

---
name: Release
on: # yamllint disable-line rule:truthy
push:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
validate:
name: Validations
uses: ./.github/workflows/validations.yaml
release:
needs: [validate]
name: Create a release
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
-
uses: actions/checkout@v4
id: git-checkout
with:
fetch-tags: true
-
uses: googleapis/release-please-action@v4
id: release
with:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
-
id: debug
env:
RELEASE_CREATED: ${{ steps.release.outputs.release_created }}
TRACE: ${{ secrets.ACTIONS_STEP_DEBUG || 'false' }}
run: |
if [ "$TRACE" != 'false' ]
then
printf 'Release created: %s\n' "$RELEASE_CREATED"
fi
publish:
if: needs.release.outputs.release_created
needs: release
name: Build and publish artifacts
uses: ./.github/workflows/publish.yaml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/release.yaml" -> "./.github/workflows/publish.yaml" (source branch with sha:d370dd684832056748e28b4a34e69ef7ba64b3bb) --> "./.github/workflows/gem.yaml" (source branch with sha:d370dd684832056748e28b4a34e69ef7ba64b3bb) : (Line: 35, Col: 9): 'env' is already defined
secrets: inherit