Skip to content

Rewrite CI logic

Rewrite CI logic #134

Workflow file for this run

name: CI
on:
push:
branches:
- 'dev/**'
paths:
- '**/*.gradle'
- '**/gradle.properties'
- '**/src/**'
- '**/versions/**'
- '.github/**'
pull_request:
release:
types:
- published
jobs:
prepare_action_info:
if: ${{ !startsWith(github.event.ref, 'refs/tags/') }}
uses: ./.github/workflows/prepare_action_info.yml
build:
if: ${{ !contains(github.event.head_commit.message, '[build skip]') }}
uses: ./.github/workflows/build.yml
secrets: inherit
needs:
- prepare_action_info
with:
build_publish: ${{ fromJSON(needs.prepare_action_info.outputs.build_publish) }}
build_version_type: ${{ needs.prepare_action_info.outputs.build_version_type }}
publish:
if: ${{ fromJSON(needs.prepare_action_info.outputs.publish_enable) }}
uses: ./.github/workflows/publish.yml

Check failure on line 32 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. In .github/workflows/CI.yml (Line: 32, Col: 11): Error from called workflow Nyan-Work/MagicLib/.github/workflows/publish.yml@cf71c11e86f0fd7b7878b32ab14c95aa91726e9c (Line: 193, Col: 27): Unexpected symbol: '"${undefined}"'. Located at position 31 within expression: secrets.MODRINTH_API_TOKEN || "${undefined}" In .github/workflows/CI.yml (Line: 32, Col: 11): Error from called workflow Nyan-Work/MagicLib/.github/workflows/publish.yml@cf71c11e86f0fd7b7878b32ab14c95aa91726e9c (Line: 195, Col: 29): Unexpected symbol: '"${undefined}"'. Located at position 25 within expression: secrets.CF_API_TOKEN || "${undefined}"
secrets: inherit
needs:
- build
- prepare_action_info
with:
publish_platform_channel: ${{ needs.prepare_action_info.outputs.publish_platform_channel }}
publish_type: ${{ needs.prepare_action_info.outputs.publish_type }}