-
Notifications
You must be signed in to change notification settings - Fork 439
38 lines (34 loc) · 1.15 KB
/
upstream.yml
File metadata and controls
38 lines (34 loc) · 1.15 KB
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
31
32
33
34
35
36
37
38
name: Check libphonenumbers releases
on:
schedule:
- cron: '30 7,19 * * *' # Run daily at 07:30 and 19:30
workflow_dispatch:
jobs:
versioncheck:
runs-on: ubuntu-latest
if: github.repository_owner == 'daviddrysdale'
permissions:
issues: write
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install requests
- name: Check upstream version
run: |
python tools/python/checkupstreamversion.py
- name: Create update issue
if: failure()
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
# language=JavaScript
script: |
await github.rest.issues.create({
owner: "daviddrysdale",
repo: "python-phonenumbers",
title: `[bot]: New upstream version: ${process.env.LIBPHONENUMBER_UPSTREAM_VERSION}`,
})