-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (32 loc) · 1.03 KB
/
sync.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
name: Sync Requirements
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.COMMIT_ACTIONS_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install vereqsyn
- name: Syncing grok-versions.cfg with requirements.txt
run: |
vereqsyn grok-versions.cfg dependabot/requirements.txt
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
committer_name: GitHub Actions
committer_email: actions@github.com
message: Version synchronization
add: '["grok-versions.cfg", "dependabot/requirements.txt"]'