Skip to content

Commit

Permalink
feat: add auto-update versions workflow
Browse files Browse the repository at this point in the history
The new workflow added in `.github/workflows/auto-update-versions.yml` takes care of automatically updating the Vespa version in the project's documentation. The workflow is triggered either manually or on a daily schedule, and it fetches the latest Vespa version from the Maven repository and updates the relevant files in the repository.
  • Loading branch information
esolitos authored and gitbutler-client committed Aug 12, 2024
1 parent 7d447d8 commit 1c4c34b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-update-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Auto-update versions
#
# Takes care of updating the Vespa version in the documentation.
#

on:
workflow_dispatch: # Allow manual triggering of the workflow

schedule:
- cron: "0 0 * * *"

# For testing purposes
push:
branches: [auto-update-versions]

permissions:
contents: write
pull-requests: write

jobs:
update-vespa-version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Get Latest Vespa version
run: |
VESPA_VERSION=$(curl -sSL https://repo1.maven.org/maven2/com/yahoo/vespa/parent/maven-metadata.xml | \
grep -oP '<latest>\K([0-9]+\.[0-9]+\.[0-9]+)')
xq --version
echo "Vespa version: $VESPA_VERSION"

0 comments on commit 1c4c34b

Please sign in to comment.