-
Notifications
You must be signed in to change notification settings - Fork 321
41 lines (40 loc) · 1.36 KB
/
update_software_versions.yml
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
name: update-software-versions
on:
workflow_dispatch:
jobs:
update-software-versions:
name: update software versions to latest
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Run update_versions script
run: |
pip3 install -r .github/scripts/update_versions/requirements.txt
python3 .github/scripts/update_versions/update.py
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v17
id: verify-changed-files
with:
files: |
*.json
- name: Create pull request
if: steps.verify-changed-files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
title: "build(deps): updating software versions"
token: ${{ secrets.KICS_BOT_PAT }}
commit-message: "build(deps): updating software versions to new release"
delete-branch: true
branch: feature/kicsbot-software-versions
base: master
body: |
**Automated Changes**
Updating assets/libraries/common.json software versions
Triggered by SHA: _${{ github.sha }}_
labels: enhancement