Bump ocserv version #251
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: Bump ocserv version | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
ocserv-version-update: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Update openconnect version | |
id: get_version | |
run: | | |
OC_VERSION=$(curl -s ftp://ftp.infradead.org/pub/ocserv/ | awk '{print $9}' | tail -n 1 | sed 's:.*-::;s:.tar.*::') | |
sed -i "s/ENV OC_VERSION=[0-9]*.[0-9]*.[0-9]*/ENV OC_VERSION=$OC_VERSION/g" Dockerfile | |
echo "OC_VERSION=$OC_VERSION" >> $GITHUB_OUTPUT | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "Bump ocserv version ${{ steps.get_version.outputs.OC_VERSION }}" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: features/update-dependencies | |
title: Bump ocserv version | |
labels: dependencies | |
delete-branch: true | |
base: master | |
env: | |
OC_VERSION: ${{ steps.get_version.outputs.OC_VERSION }} |