-
Notifications
You must be signed in to change notification settings - Fork 15
80 lines (67 loc) · 2.32 KB
/
update_package_versions.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
name: Update package versions
# Run workflow on pushes to matching branches
on: # yamllint disable-line rule:truthy
push:
branches: [develop]
schedule:
- cron: "0 0 */7 * *" # run once per week
workflow_dispatch: # allow this workflow to be manually triggered
# checkout needs 'contents:read'
# pull request needs 'pull-requests:write' and 'contents:write'
permissions:
contents: write
pull-requests: write
jobs:
update_package_versions:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Python packages
run: |
pip install --upgrade pip
pip install -r .github/scripts/requirements.txt
- name: Update Azure Data Studio version
run: |
python .github/scripts/update_azure_data_studio.py
- name: Update RStudio version
run: |
python .github/scripts/update_rstudio.py
- name: Update DBeaver driver versions
run: |
python .github/scripts/update_dbeaver_drivers.py
- name: Check for changes
shell: bash
run: git --no-pager diff -- .
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Create pull request
if: ${{ ! env.ACT }}
id: pull-request
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # This commit corresponds to tag 5.0.2
with:
commit-message: Update SRD package versions
committer: GitHub Actions <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
base: develop
branch: srd-package-versions
delete-branch: true
title: Update SRD package versions
body: |
### :arrow_heading_up: Summary
- Apply package version diff from ${{ github.sha }} on ${{ steps.date.outputs.date }}
### :closed_umbrella: Related issues
None
### :microscope: Tests
Package versions only
labels: |
affected: developers
severity: minor
type: enhancement
draft: false