Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add actual version info into title and commit message #269

Merged
merged 4 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/dep_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,24 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_compose.sh
run: |
./tools/check_compose.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update to latest compose dev version
commit-message: update to compose.version ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/compose
delete-branch: true
title: 'update compose'
title: update to compose.version ${{ steps.version_info_str.outputs.release_tag }}
14 changes: 11 additions & 3 deletions .github/workflows/dep_ffmpeg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,26 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_ffmpeg.sh
run: ./tools/check_ffmpeg.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update ffmpeg
commit-message: update ffmpeg to ${{ steps.version_info_str.outputs.release_tag }}
branch: 'create-pull-request/ffmpeg'
delete-branch: true
title: 'update ffmpeg'
title: update ffmpeg to ${{ steps.version_info_str.outputs.release_tag }}



14 changes: 11 additions & 3 deletions .github/workflows/dep_libsodium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_libsodium.sh
run: ./tools/check_libsodium.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update libsodium
commit-message: update libsodium to ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/libsodium
delete-branch: true
title: 'update libsodium'
title: update libsodium to ${{ steps.version_info_str.outputs.release_tag }}
14 changes: 11 additions & 3 deletions .github/workflows/dep_libvpx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_libvpx.sh
run: ./tools/check_libvpx.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update libvpx
commit-message: update libvpx to ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/libvpx
delete-branch: true
title: 'update libvpx'
title: update libvpx to ${{ steps.version_info_str.outputs.release_tag }}
14 changes: 11 additions & 3 deletions .github/workflows/dep_opus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_opus.sh
run: ./tools/check_opus.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update opus
commit-message: update opus to ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/opus
delete-branch: true
title: 'update opus'
title: update opus to ${{ steps.version_info_str.outputs.release_tag }}
14 changes: 11 additions & 3 deletions .github/workflows/dep_x264.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_x264.sh
run: ./tools/check_x264.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update x264
commit-message: update x264 to ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/x264
delete-branch: true
title: 'update x264'
title: update x264 to ${{ steps.version_info_str.outputs.release_tag }}
14 changes: 11 additions & 3 deletions .github/workflows/dep_x265.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,23 @@ jobs:
uses: actions/checkout@v4

- name: Run auto dependency update
run: ./tools/check_x265.sh
run: ./tools/check_x265.sh > output.txt

- name: check for changes
run: git diff || echo "no changes"

- name: get version info string
id: version_info_str
run: |
(release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT

- name: cleanup
run: rm -f output.txt

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: update x265
commit-message: update x265 to ${{ steps.version_info_str.outputs.release_tag }}
branch: create-pull-request/x265
delete-branch: true
title: 'update x265'
title: update x265 to ${{ steps.version_info_str.outputs.release_tag }}
6 changes: 3 additions & 3 deletions tools/check_compose.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#! /bin/bash

r1='https://github.com/JetBrains/compose-multiplatform'
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" \
| cut --delimiter='/' --fields=3 | tail -1|sed -e 's#^v##')
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" 2>/dev/null \
| cut --delimiter='/' --fields=3 2>/dev/null| tail -1 2>/dev/null|sed -e 's#^v##' 2>/dev/null)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

sed -i -e 's#^compose.version=.*$#compose.version='"$ver"'#' gradle.properties

2 changes: 1 addition & 1 deletion tools/check_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://github.com/FFmpeg/FFmpeg'
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" \
| cut --delimiter='/' --fields=3 | grep -v '^v' | grep -v '\-dev'|tail --lines=1)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/

Expand Down
2 changes: 1 addition & 1 deletion tools/check_libsodium.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://github.com/jedisct1/libsodium'
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" \
| cut --delimiter='/' --fields=3 | grep '\-RELEASE' | tail --lines=1|sed -e 's#-RELEASE$##')

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/
grep -ril 'SODIUM_VERSION='|xargs -L1 sed -i -e 's#SODIUM_VERSION=".*"#SODIUM_VERSION="'"$ver"'"#'
Expand Down
2 changes: 1 addition & 1 deletion tools/check_libvpx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://github.com/webmproject/libvpx'
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" \
| cut --delimiter='/' --fields=3 | grep -v '\-' | tail --lines=1)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/
grep -ril 'VPX_VERSION='|xargs -L1 sed -i -e 's#VPX_VERSION=".*"#VPX_VERSION="'"$ver"'"#'
Expand Down
2 changes: 1 addition & 1 deletion tools/check_opus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://github.com/xiph/opus'
ver=$(git ls-remote --refs --sort='v:refname' --tags "$r1" \
| cut --delimiter='/' --fields=3 | grep -v '\-' | tail --lines=1)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/
grep -ril 'OPUS_VERSION='|xargs -L1 sed -i -e 's#OPUS_VERSION=".*"#OPUS_VERSION="'"$ver"'"#'
Expand Down
2 changes: 1 addition & 1 deletion tools/check_x264.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://code.videolan.org/videolan/x264.git'
ver=$(git ls-remote --sort=v:refname "$r1" refs/heads/stable \
|awk '{print $1}' | tail --lines=1)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/
grep -ril '_X264_VERSION_='|xargs -L1 sed -i -e 's#_X264_VERSION_=".*"#_X264_VERSION_="'"$ver"'"#'
Expand Down
2 changes: 1 addition & 1 deletion tools/check_x265.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ r1='https://bitbucket.org/multicoreware/x265_git.git'
ver=$(git ls-remote --sort=v:refname "$r1" refs/heads/stable \
|awk '{print $1}' | tail --lines=1)

echo "$ver"
echo "__VERSIONUPDATE__:""$ver"

cd ./circle_scripts/
grep -ril '_X265_VERSION_='|xargs -L1 sed -i -e 's#_X265_VERSION_=".*"#_X265_VERSION_="'"$ver"'"#'
Expand Down
Loading