Skip to content

Commit 7b948c7

Browse files
authored
Keep alive (#314)
* remove keep alive
1 parent 208c6be commit 7b948c7

File tree

3 files changed

+0
-100
lines changed

3 files changed

+0
-100
lines changed

.github/workflows/test_all_tutorials.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,6 @@ jobs:
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:

.github/workflows/test_full.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,6 @@ jobs:
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:

.github/workflows/test_tutorials.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,6 @@ jobs:
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:

0 commit comments

Comments
 (0)