-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Auto update x264 | ||
|
||
on: | ||
schedule: | ||
# runs daily at 12:00 am | ||
- cron: '0 0 * * *' | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: dummy | ||
default: dummy | ||
|
||
|
||
jobs: | ||
auto-update-dependencies: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run auto dependency update | ||
run: ./tools/check_x264.sh | ||
|
||
- name: check for changes | ||
run: git diff || echo "no changes" | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: update x264 | ||
branch: create-pull-request/x264 | ||
delete-branch: true | ||
title: 'update x264' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /bin/bash | ||
|
||
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" | ||
|
||
d='./circle_scripts/' | ||
f='deps.sh' | ||
|
||
cd "$d" | ||
grep -ril '_X264_VERSION_='|xargs -L1 sed -i -e 's#_X264_VERSION_=".*"#_X264_VERSION_="'"$ver"'"#' |