diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2fd338..c11c001 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,11 @@ jobs: id: galaxy_yml_version run: | import yaml + import os with open('galaxy.yml', 'r') as file: data = yaml.safe_load(file) - print(f"version={data['version']}") - print(f"::set-output name=value::{data['version']}") + with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file: + output_file.write(f"value={data['version']}\n") shell: "python" - name: "Compare with latest git tag" @@ -40,9 +41,9 @@ jobs: latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.0') if [[ "${{ steps.galaxy_yml_version.outputs.value }}" != "$latest_tag" ]]; then - echo "::set-output name=value::true" + echo "value={true}" >> $GITHUB_OUTPUT else - echo "::set-output name=value::false" + echo "value={false}" >> $GITHUB_OUTPUT fi publish: