Skip to content

Add keep-alive and dependabot #1

Add keep-alive and dependabot

Add keep-alive and dependabot #1

Workflow file for this run

# Keep the GitHub Actions alive. If there is no activity for 60 days, GitHub Actions gets
# disabled. So we add a commit every so often.
name: Keep alive
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
env:
PRODUCTION_URL: https://nugettools.azurewebsites.net
jobs:
keep-alive:

Check failure on line 14 in .github/workflows/keep-alive.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/keep-alive.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Write current versions
shell: pwsh
run: |-
$month = (Get-Date).ToUniversalTime().ToString('MMMM yyyy', [CultureInfo]::InvariantCulture)
$versions = curl $env:PRODUCTION_URL/api/versions
$data = $versions | jq --arg month "$month" ". | {month: `$month, versions: .}"
$data | Out-File latest-versions.json -Encoding utf8
- name: Commit and push if data has changed
run: |-
git config user.name "Automated"
git config user.email "actions@users.noreply.github.com"
git add -A
git commit -m "Update latest-versions.json" || exit 0
git push