Skip to content

Merge remote-tracking branch 'refs/remotes/origin/main' #21

Merge remote-tracking branch 'refs/remotes/origin/main'

Merge remote-tracking branch 'refs/remotes/origin/main' #21

name: Process Commit
on:
push:
branches: ["main"]
workflow_call:
secrets:
MODRINTH_TOKEN:
description: 'The token to use for Modrinth authentication'
required: true
jobs:
process-commit:
name: Process Commit
runs-on: ubuntu-latest
permissions: write-all
outputs:
bump: ${{ steps.process-commit.outputs.bump }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: go install github.com/packwiz/packwiz@latest
- name: Process commit
id: process-commit
run: ${{ github.workspace }}/.github/scripts/process-commit.sh
publish:
needs: process-commit
if: needs.process-commit.outputs.bump == 'true'
uses: ./.github/workflows/publish.yml
secrets:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}