Skip to content

Commit ed7f98d

Browse files
committed
Add piplock-renewal worflow for the main branch
1 parent 4317cc1 commit ed7f98d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
# This GitHub action is meant to be triggered weekly in order to update the pipfile.locks
3+
4+
name: Weekly Pipfile.locks renewal on [main] branch
5+
6+
on: # yamllint disable-line rule:truthy
7+
# Triggers the workflow every Monday at 22pm UTC am 0 22 * * 1
8+
schedule:
9+
- cron: "0 22 * * 1"
10+
workflow_dispatch: # for manual trigger workflow from GH Web UI
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
# Give the default GITHUB_TOKEN write permission to commit and push the
18+
# added or changed files to the repository.
19+
contents: write
20+
21+
steps:
22+
# Checkout the paricular branch
23+
- name: Checkout code from the release branch
24+
uses: actions/checkout@v4
25+
with:
26+
ref: main
27+
token: ${{ secrets.GH_ACCESS_TOKEN }}
28+
29+
# Setup Python environment
30+
- name: Setup Python environment
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: |
34+
3.9
35+
3.11
36+
- name: Install pipenv
37+
run: pip install pipenv
38+
39+
# Runs the makefile recipe `refresh-pipfilelock-files` and push the chances back to the branch
40+
- name: Run make refresh-pipfilelock-files and push the chances back to the branch
41+
run: |
42+
make refresh-pipfilelock-files
43+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
44+
git config --global user.name "GitHub Actions"
45+
git add .
46+
git commit -m "Update the pipfile.lock via the weekly workflow action"
47+
git push

0 commit comments

Comments
 (0)