update-proxy #1378
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: update-proxy | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
determine-server: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Download server | |
run: | | |
wget -O ezproxy https://help.oclc.org/@api/deki/files/9850/ezproxy-linux.bin | |
chmod +x ezproxy | |
- name: Check version | |
id: version | |
run: | | |
VERSION="$(./ezproxy -v | grep -oP "EZproxy \d+\.\d+\.\d+" | tr -d '\n')" | |
echo "ezproxy_version=$VERSION" >> $GITHUB_OUTPUT | |
echo $VERSION > VERSION | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: update-ezproxy | |
commit-message: Update to ${{ steps.version.outputs.ezproxy_version }} | |
title: Update to ${{ steps.version.outputs.ezproxy_version }} | |
body: | | |
${{ steps.version.outputs.ezproxy_version }} |