WireMock Sync #14
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: WireMock Sync | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
name: WireMock Sync | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: wiremock/wiremock | |
token: ${{ secrets.WIREMOCK_SYNC_PAT }} | |
ref: master | |
fetch-depth: 0 | |
- id: checkout | |
name: Check upstream | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
#!/bin/bash | |
# Check latest semver tag: | |
echo "Searching for latest semver" | |
# version=$(git tag -l --sort=-version:refname | grep -qP '^[0-9]+\.[0-9]+\.[0-9]+$' -m 1) | |
echo "version=${version}" >> $GITHUB_OUTPUT | |
echo "Found version=$version. Checking if this version is newer than our." | |
gh release list |