Skip to content

Commit

Permalink
check also x264 dep
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jun 9, 2024
1 parent 8b95eb8 commit 0a83cf8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dep_x264.yml
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'
13 changes: 13 additions & 0 deletions tools/check_x264.sh
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"'"#'

0 comments on commit 0a83cf8

Please sign in to comment.