Skip to content

update-proxy

update-proxy #1383

Workflow file for this run

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 }}