Skip to content

Commit

Permalink
Workflow fix (#2129)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Oct 11, 2024
1 parent 7bfc09b commit 557d3ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/json/config-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"sort": "ASC",
"template": "## Changes\n#{{CHANGELOG}}",
"template": "## What's Changed\n#{{CHANGELOG}}",
"pr_template": "- #{{TITLE}} by #{{AUTHOR}} in [##{{NUMBER}}](#{{URL}})",
"ignore_labels": ["ignore changelog"],
"max_pull_requests": 1000,
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ jobs:
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
permissions:
contents: write
pull-requests: write
pull-requests: read
steps:
- name: Get Config
uses: actions/checkout@v4
with:
ref: '1.20.1'
sparse-checkout: '.github/json'
- name: Generate changelog
id: changelog
env:
Expand All @@ -36,8 +41,8 @@ jobs:
with:
simulate: ${{ startsWith(github.event.release.name, 'simulate') || github.repository_owner != 'GregTechCEu' }}
branch: '1.20.1'
tag-name: ${{ github.event.release.tag }}
release-body: ${{ github.event.release.description }}
tag-name: ${{ github.ref_name }}
release-body: ${{ github.event.release.body }}
changelog-body: ${{ needs.meta.outputs.CHANGELOG }}

publish-21:
Expand All @@ -48,4 +53,6 @@ jobs:
with:
simulate: ${{ startsWith(github.event.release.name, 'simulate') || github.repository_owner != 'GregTechCEu' }}
branch: '1.21'
tag-name: ${{ github.event.release.tag }}
tag-name: ${{ github.ref_name }}
release-body: ${{ github.event.release.body }}
changelog-body: ${{ needs.meta.outputs.CHANGELOG }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag-name }}
files: ./!(*-@(dev|dev-all|dev-slim|javadoc)).jar
files: ./*.jar
fail_on_unmatched_files: true

publish-cf-modrinth:
Expand Down

0 comments on commit 557d3ed

Please sign in to comment.