Skip to content

WireMock Sync

WireMock Sync #20

Workflow file for this run

name: WireMock Sync
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
sync:
runs-on: ubuntu-latest
name: WireMock Sync
outputs:
wireMockVersion: ${{ }}

Check failure on line 13 in .github/workflows/wiremock-sync.yml

View workflow run for this annotation

GitHub Actions / WireMock Sync

Invalid workflow file

The workflow is not valid. .github/workflows/wiremock-sync.yml (Line: 13, Col: 24): An expression was expected
steps:
- uses: actions/checkout@v4
with:
#repository: wiremock/wiremock
#token: ${{ secrets.WIREMOCK_SYNC_PAT }}
#ref: master
fetch-depth: 0
- id: wiremock-remote
name: Add WireMock remote
env:
GH_TOKEN: ${{ github.token }}
run: |
#!/bin/bash
git remote add upstream https://github.com/wiremock/wiremock.git
git fetch upstream
- id: wiremock-version
name: Check WireMock Version
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 -P '\d+\.\d+\.\d+' -m 1)
echo "version=${version}" >> $GITHUB_OUTPUT
echo "Found version=${version}. Checking if this version is newer than our."
gh release list --exclude-drafts --exclude-pre-releases