mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
ci fix
This commit is contained in:
parent
f69b95738f
commit
8581ea3093
1 changed files with 6 additions and 9 deletions
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- index.json
|
- index.json
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Create Release
|
name: Create Release
|
||||||
|
|
@ -22,15 +22,15 @@ jobs:
|
||||||
uses: oprypin/find-latest-tag@v1.1.2
|
uses: oprypin/find-latest-tag@v1.1.2
|
||||||
with:
|
with:
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
releases-only: true # We know that all relevant tags have a GitHub release for them.
|
releases-only: true # We know that all relevant tags have a GitHub release for them.
|
||||||
id: previoustag
|
id: previoustag
|
||||||
|
|
||||||
- name: set_variables
|
- name: set_variables
|
||||||
run: |
|
run: |
|
||||||
output1=$(python3 test/get_latest.py get_latest_plugman_version)
|
output1=$(python3 test/get_latest.py get_latest_plugman_version)
|
||||||
{
|
{
|
||||||
echo "changelog<<EOF"
|
echo "changelog<<EOF"
|
||||||
python3 test/get_changelog.py "$(python3 test/get_latest.py get_latest_version)"
|
python3 test/get_changelog.py "$(python3 test/get_latest.py get_latest_plugman_version)"
|
||||||
echo EOF
|
echo EOF
|
||||||
} >> "$GITHUB_OUTPUT"
|
} >> "$GITHUB_OUTPUT"
|
||||||
output2=$(python3 test/get_latest.py get_latest_api)
|
output2=$(python3 test/get_latest.py get_latest_api)
|
||||||
|
|
@ -39,8 +39,6 @@ jobs:
|
||||||
echo "latestAPI=$output2" >> $GITHUB_OUTPUT
|
echo "latestAPI=$output2" >> $GITHUB_OUTPUT
|
||||||
echo "shouldRun=$output3" >> $GITHUB_OUTPUT
|
echo "shouldRun=$output3" >> $GITHUB_OUTPUT
|
||||||
id: set_variables
|
id: set_variables
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
if: ${{ steps.set_variables.outputs.shouldRun == '1' }}
|
if: ${{ steps.set_variables.outputs.shouldRun == '1' }}
|
||||||
|
|
@ -50,15 +48,14 @@ jobs:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
custom_tag: |
|
custom_tag: |
|
||||||
${{ steps.set_variables.outputs.latestVersion }}
|
${{ steps.set_variables.outputs.latestVersion }}
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: ${{ steps.tag_version.outputs.new_tag }}
|
if: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.tag_version.outputs.new_tag }}
|
tag: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
name: ${{ steps.tag_version.outputs.new_tag }} (api ${{ steps.set_variables.outputs.latestAPI }})
|
name: ${{ steps.tag_version.outputs.new_tag }} (api ${{ steps.set_variables.outputs.latestAPI }})
|
||||||
artifacts: "plugin_manager.py"
|
artifacts: 'plugin_manager.py'
|
||||||
body: |
|
body: |
|
||||||
## Changelog
|
## Changelog
|
||||||
${{ steps.set_variables.outputs.changelog }}
|
${{ steps.set_variables.outputs.changelog }}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue