0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00

Outputs logging

This commit is contained in:
Andrey Onishchenko 2024-03-11 18:06:19 +03:00
parent 363c6e8b71
commit 0964ca28b7
2 changed files with 25 additions and 12 deletions

View File

@ -10,9 +10,6 @@ on:
pull_request:
branches:
- '*'
push:
branches:
- 'dev'
jobs:

View File

@ -7,6 +7,7 @@ on:
push:
branches:
- 'master'
- 'dev'
jobs:
@ -26,7 +27,8 @@ jobs:
run: git config --global --add safe.directory "*"
- name: Update package files
run: python utility/update_version.py
run: |
python utility/update_version.py
python utility/generate_packages.py
- name: Commit and push changes
@ -40,20 +42,33 @@ jobs:
- name: Get Version
id: version
run: VERSION=$(jq -r '.ym.version' ./utility/version_info.json)
run: |
VERSION=$(jq -r '.ym.version' ./utility/version_info.json)
release_name="Beta $VERSION"
tag_name="v$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "release_name=$release_name" >> $GITHUB_OUTPUT
echo "tag_name=$tag_name" >> $GITHUB_OUTPUT
- name: Outputs
id: outputs
run: |
echo "commited=${{ steps.commit.outputs.commited || github.event.head_commit }}" >> $GITHUB_OUTPUT
echo "commit_long_sha=${{ steps.commit.outputs.commit_long_sha || github.event.head_commit.id}}" >> $GITHUB_OUTPUT
echo "commit_name=${{ github.event.head_commit.message || 'Update packages' }}" >> $GITHUB_OUTPUT
echo "tag_name=${{ steps.version.outputs.tag_name }}" >> $GITHUB_OUTPUT
echo "release_name=${{ steps.version.outputs.release_name }}" >> $GITHUB_OUTPUT
echo "VERSION=${{ steps.version.outputs.VERSION }}" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
outputs:
commited: ${{ steps.commit.outputs.commited || github.event.head_commit }}
commit_long_sha: ${{ steps.commit.outputs.commit_long_sha || github.event.head_commit.id}}
commit_name: ${{ github.event.head_commit.message || 'Update packages' }}
tag_name: ${{ steps.version.outputs.tag_name }}
release_name: ${{ steps.version.outputs.release_name }}
version: ${{ steps.version.outputs.VERSION }}
commited: ${{ steps.outputs.commited != '' }}
commit_long_sha: ${{ steps.outputs.commit_long_sha }}
commit_name: ${{ steps.outputs.commit_name }}
tag_name: ${{ steps.outputs.tag_name }}
release_name: ${{ steps.outputs.release_name }}
version: ${{ steps.outputs.VERSION }}
build:
@ -95,7 +110,8 @@ jobs:
path: dist
- name: Install packages
run: sudo apt-get update -y
run: |
sudo apt-get update -y
sudo apt-get install jq -y
- name: Get Release Notes HTML