File tree Expand file tree Collapse file tree 3 files changed +0
-100
lines changed
Expand file tree Collapse file tree 3 files changed +0
-100
lines changed Original file line number Diff line number Diff line change 1616 - uses : actions/checkout@v3
1717 with :
1818 submodules : true
19- ref : main
20-
21- - name : Make Keepalive Commit
22- run : |
23- echo "Keepalive commit at $(date)" > keepalive.txt
24- git config --global user.name "gkr-bot"
25- git config --global user.email "[email protected] " 26- git add keepalive.txt
27- git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit"
28- - name : Create Pull Request
29- id : cpr
30- uses : peter-evans/create-pull-request@v5
31- with :
32- token : ${{ secrets.GITHUB_TOKEN }}
33- commit-message : " Automated commit by Keepalive Workflow to keep the repository active"
34- title : " Keep Repository Active"
35- body : " This PR is automatically generated to keep the repository active."
36- branch : keepalive-branch
37- base : main
38- - name : Close Pull Request
39- if : steps.cpr.outputs.pull-request-number != ''
40- uses : actions/github-script@v6
41- with :
42- github-token : ${{ secrets.GITHUB_TOKEN }}
43- script : |
44- const prNumber = ${{ steps.cpr.outputs.pull-request-number }};
45- await github.rest.pulls.update({
46- owner: context.repo.owner,
47- repo: context.repo.repo,
48- pull_number: prNumber,
49- state: 'closed'
50- });
51- console.log(`Closed PR #${prNumber}`);
52-
5319 - name : Set up Python ${{ matrix.python-version }}
5420 uses : actions/setup-python@v4
5521 with :
Original file line number Diff line number Diff line change 1717 with :
1818 submodules : true
1919 ref : main
20-
21- - name : Make Keepalive Commit
22- run : |
23- echo "Keepalive commit at $(date)" > keepalive.txt
24- git config --global user.name "gkr-bot"
25- git config --global user.email "[email protected] " 26- git add keepalive.txt
27- git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit"
28- - name : Create Pull Request
29- id : cpr
30- uses : peter-evans/create-pull-request@v5
31- with :
32- token : ${{ secrets.GITHUB_TOKEN }}
33- commit-message : " Automated commit by Keepalive Workflow to keep the repository active"
34- title : " Keep Repository Active"
35- body : " This PR is automatically generated to keep the repository active."
36- branch : keepalive-branch
37- base : main
38- - name : Close Pull Request
39- if : steps.cpr.outputs.pull-request-number != ''
40- uses : actions/github-script@v6
41- with :
42- github-token : ${{ secrets.GITHUB_TOKEN }}
43- script : |
44- const prNumber = ${{ steps.cpr.outputs.pull-request-number }};
45- await github.rest.pulls.update({
46- owner: context.repo.owner,
47- repo: context.repo.repo,
48- pull_number: prNumber,
49- state: 'closed'
50- });
51- console.log(`Closed PR #${prNumber}`);
52-
5320 - name : Set up Python ${{ matrix.python-version }}
5421 uses : actions/setup-python@v4
5522 with :
Original file line number Diff line number Diff line change 2121 with :
2222 submodules : true
2323 ref : main
24-
25- - name : Make Keepalive Commit
26- run : |
27- echo "Keepalive commit at $(date)" > keepalive.txt
28- git config --global user.name "gkr-bot"
29- git config --global user.email "[email protected] " 30- git add keepalive.txt
31- git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit"
32- - name : Create Pull Request
33- id : cpr
34- uses : peter-evans/create-pull-request@v5
35- with :
36- token : ${{ secrets.GITHUB_TOKEN }}
37- commit-message : " Automated commit by Keepalive Workflow to keep the repository active"
38- title : " Keep Repository Active"
39- body : " This PR is automatically generated to keep the repository active."
40- branch : keepalive-branch
41- base : main
42- - name : Close Pull Request
43- if : steps.cpr.outputs.pull-request-number != ''
44- uses : actions/github-script@v6
45- with :
46- github-token : ${{ secrets.GITHUB_TOKEN }}
47- script : |
48- const prNumber = ${{ steps.cpr.outputs.pull-request-number }};
49- await github.rest.pulls.update({
50- owner: context.repo.owner,
51- repo: context.repo.repo,
52- pull_number: prNumber,
53- state: 'closed'
54- });
55- console.log(`Closed PR #${prNumber}`);
56-
5724 - name : Set up Python ${{ matrix.python-version }}
5825 uses : actions/setup-python@v4
5926 with :
You can’t perform that action at this time.
0 commit comments