Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
framebassman committed Jan 14, 2024
1 parent 126206d commit 922d338
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ocserv-version-update.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: bump ocserv version
on:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
Expand All @@ -16,8 +17,8 @@ jobs:
- name: Update openconnect version
id: get_version
run: |
OC_VERSION=$(curl https://gitlab.com/api/v4/projects/openconnect%2Focserv/repository/tags | jq -r '.[0].name')
sed -i "s/ENV OC_VERSION=[0-9].[0-9].[0-9]/ENV OC_VERSION=$OC_VERSION/g" Dockerfile
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
Expand All @@ -29,5 +30,6 @@ jobs:
title: Bump ocserv version
labels: dependencies
delete-branch: true
base: master
env:
OC_VERSION: ${{ steps.get_version.outputs.OC_VERSION }}

0 comments on commit 922d338

Please sign in to comment.