-
-
Notifications
You must be signed in to change notification settings - Fork 54
47 lines (36 loc) · 1.15 KB
/
dep_ffmpeg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Auto update ffmpeg
on:
push:
branches-ignore:
- 'zoff99/dev003'
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_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@v7
with:
commit-message: update ffmpeg to ${{ steps.version_info_str.outputs.release_tag }}
branch: 'create-pull-request/ffmpeg'
delete-branch: true
title: update ffmpeg to ${{ steps.version_info_str.outputs.release_tag }}