Skip to content

ci(releases): refactored structures of workflows #28

ci(releases): refactored structures of workflows

ci(releases): refactored structures of workflows #28

Workflow file for this run

name: Dev release on latest commit of default branch
on:
# Triggers the workflow on push events on the default branch
workflow_dispatch:
push:
env:
DEV_VERSION: v0.0.0
jobs:
cleanup-of-dev-release:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Delete Release and Tag
run: gh release delete ${{ env.DEV_VERSION }} --cleanup-tag
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-dev-release-based-on-current-default-branch:
needs: cleanup-of-dev-release
uses: ./.github/workflows/publish-release.yml
with:
version: ${{ env.DEV_VERSION }}

Check failure on line 29 in .github/workflows/latest.yml

View workflow run for this annotation

GitHub Actions / Dev release on latest commit of default branch

Invalid workflow file

The workflow is not valid. .github/workflows/latest.yml (Line: 29, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DEV_VERSION