Skip to content

Commit 14b5650

Browse files
committed
next try fixing workflow
1 parent a4733f0 commit 14b5650

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/update_specific_types.yaml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,27 @@ jobs:
2121
- name: Run script
2222
id: script
2323
run: "poetry run python tools/update_specific_types.py"
24+
outputs:
25+
publish: ${{ steps.script.outputs.release }}
26+
new_tag: ${{ steps.script.outputs.tag }}
27+
mv_ver: ${{ steps.script.outputs.mcver }}
28+
29+
publish:
30+
runs-on: ubuntu-latest
31+
needs:
32+
- update
33+
if: needs.update.outputs.publish == "true"
34+
steps:
2435
- name: Push
25-
if: ${{ steps.script.outputs.release }} == true
2636
uses: stefanzweifel/git-auto-commit-action@v4
2737
- name: Create Release
28-
if: ${{ steps.script.outputs.release }} == true
2938
id: create_release
3039
uses: actions/create-release@latest
3140
env:
3241
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3342
with:
34-
tag_name: ${{ steps.script.outputs.tag }}
43+
tag_name: ${{ needs.update.outputs.new_tag }}
3544
release_name: Release ${{ github.ref }}
36-
body: "Added support for Minecraft ${{ steps.script.outputs.mcver }}"
45+
body: "Added support for Minecraft ${{ needs.update.outputs.mc_ver }}"
3746
draft: false
3847
prerelease: false

0 commit comments

Comments
 (0)