Skip to content

Commit

Permalink
add actual version info into title and commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 6, 2024
1 parent eab7964 commit 4f31b41
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 24 deletions.
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 }}
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

0 comments on commit 4f31b41

Please sign in to comment.