-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (25 loc) · 812 Bytes
/
check.yaml
File metadata and controls
30 lines (25 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Check latest Cloudflared version
on:
schedule:
- cron: '15 */6 * * *'
workflow_dispatch:
concurrency:
group: check
cancel-in-progress: true
jobs:
version-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Get the latest version of Cloudflared
run: |
curl -s https://api.github.com/repos/cloudflare/cloudflared/releases | jq -r '[.[] | select(.prerelease == false)][0] | .tag_name' > version
echo "CLOUDFLARED_VERSION=$(cat version)" >> $GITHUB_ENV
- name: Add & Commit
uses: EndBug/add-and-commit@v9
with:
message: 'Version updated to: ${{ env.CLOUDFLARED_VERSION }}'
default_author: github_actions