Skip to content

Commit 6374399

Browse files
committed
updating update cache
1 parent 48228f9 commit 6374399

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/update_cache.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
schedule:
66
- cron: '5 0 * * 5'
77

8+
env:
9+
DEPLOY_USER: "Kiran Kumar Kotari"
10+
DEPLOY_EMAIL: "kirankotari@live.com"
11+
DEPLOY_COMMIT_MESSAGE: Update cached versions
12+
DEPLOY_BRANCH: master
13+
14+
815
jobs:
916
update_cache:
1017
runs-on: windows-latest
@@ -16,10 +23,19 @@ jobs:
1623
- name: Invoke update
1724
run: ${{ env.HOME }}/pyenv-win/bin/pyenv.bat update
1825
shell: bash
19-
- name: Push changes to origin
20-
run: |
21-
git config user.name github-actions
22-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
23-
git add pyenv-win/.versions_cache.xml
24-
git commit -m 'chore: Update `.versions_cache.xml`'
25-
git push
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v4
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
commit-message: ${{ env.DEPLOY_COMMIT_MESSAGE }}
31+
author: '${{ env.DEPLOY_USER }} <${{ env.DEPLOY_EMAIL }}>'
32+
title: '[Automated] ${{ env.DEPLOY_COMMIT_MESSAGE }}'
33+
body: |
34+
Automated Pull Request
35+
- Event Name: ${{ github.event_name }}
36+
- Event Type: ${{ github.event.action }}
37+
- Proudly Auto-generated using [create-pull-request][1]
38+
[1]: https://github.com/peter-evans/create-pull-request
39+
labels: automerge
40+
base: ${{ env.DEPLOY_BRANCH }}
41+
branch: automated/update_cache

0 commit comments

Comments
 (0)