The macOS-12 environment is deprecated, consider switching to macOS-1… #218
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
name: Auto update x265 | |
on: | |
schedule: | |
# runs Tue at 12:00 am | |
- cron: '0 0 * * 2' | |
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_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@v7 | |
with: | |
commit-message: update x265 to ${{ steps.version_info_str.outputs.release_tag }} | |
branch: create-pull-request/x265 | |
delete-branch: true | |
title: update x265 to ${{ steps.version_info_str.outputs.release_tag }} |