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 703ee6f commit 7eac436
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 20 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 }}
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"

d='./circle_scripts/'
f='deps.sh'
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)

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

d='./circle_scripts/'
f='deps.sh'
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"

d='./circle_scripts/'
f='deps.sh'
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"

d='./circle_scripts/'
f='deps.sh'
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"

d='./circle_scripts/'
f='deps.sh'
Expand Down

0 comments on commit 7eac436

Please sign in to comment.