Skip to content

build: πŸ‘· upgrade release-please-action #294

build: πŸ‘· upgrade release-please-action

build: πŸ‘· upgrade release-please-action #294

Workflow file for this run

name: Release Please
on:
push:
branches:
- master
jobs:
# change-finder:
# runs-on: ubuntu-latest
# name: Change Finder
# outputs:
# changed: ${{ steps.find.outputs.changed }}
# plugins: ${{ steps.find.outputs.plugins }}
# steps:
# - name: Check Out
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Find
# id: find
# run: |
# npm i @actions/core
# node changeFinder.js
# release-please-pr:
# runs-on: ubuntu-latest
# name: Release Please PR
# needs:
# - change-finder
# - release-please-release
# strategy:
# fail-fast: false
# matrix:
# plugin: ${{ fromJson(needs.change-finder.outputs.plugins) }}
# steps:
# - name: Release Please PR
# uses: google-github-actions/release-please-action@v4
# with:
# release-type: simple
# package-name: ${{ matrix.plugin }}
# path: ${{ matrix.plugin }}
# monorepo-tags: true
# command: release-pr
# pull-request-title-pattern: 'chore${scope}: πŸ”– release${component} ${version}'
release-please:
runs-on: ubuntu-latest
name: Release Please
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
paths_released: ${{ steps.release-please.outputs.paths_released }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
all: ${{ steps.release-please.outputs }}
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v4
id: release-please
with:
config-file: .release-please/release-please-config.json
manifest-file: .release-please/.release-please-manifest.json
- run: |
echo "${{ steps.release-please.outputs }}"

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 69
build:
runs-on: ubuntu-latest
name: Build
needs: release-please
steps:
- run: |
echo "${{ needs.release-please.outputs }}"
echo "${{ needs.release-please.outputs.all }}"
- name: Check Out
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install mcdreforged
- name: Pack
id: pack
run: |
mcdreforged pack --ignore-patterns __pycache__ -i ${{ matrix.plugin }}
echo "name=$(ls *.mcdr)" >> $GITHUB_OUTPUT
- name: Upload
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ needs.release-please.outputs[format('{0}--tag_name', matrix.plugin)] }} ${{ steps.pack.outputs.name }}