-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove keep alive
- Loading branch information
Showing
3 changed files
with
0 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,40 +16,6 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
ref: main | ||
|
||
- name: Make Keepalive Commit | ||
run: | | ||
echo "Keepalive commit at $(date)" > keepalive.txt | ||
git config --global user.name "gkr-bot" | ||
git config --global user.email "[email protected]" | ||
git add keepalive.txt | ||
git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit" | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Automated commit by Keepalive Workflow to keep the repository active" | ||
title: "Keep Repository Active" | ||
body: "This PR is automatically generated to keep the repository active." | ||
branch: keepalive-branch | ||
base: main | ||
- name: Close Pull Request | ||
if: steps.cpr.outputs.pull-request-number != '' | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const prNumber = ${{ steps.cpr.outputs.pull-request-number }}; | ||
await github.rest.pulls.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: prNumber, | ||
state: 'closed' | ||
}); | ||
console.log(`Closed PR #${prNumber}`); | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,39 +17,6 @@ jobs: | |
with: | ||
submodules: true | ||
ref: main | ||
|
||
- name: Make Keepalive Commit | ||
run: | | ||
echo "Keepalive commit at $(date)" > keepalive.txt | ||
git config --global user.name "gkr-bot" | ||
git config --global user.email "[email protected]" | ||
git add keepalive.txt | ||
git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit" | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Automated commit by Keepalive Workflow to keep the repository active" | ||
title: "Keep Repository Active" | ||
body: "This PR is automatically generated to keep the repository active." | ||
branch: keepalive-branch | ||
base: main | ||
- name: Close Pull Request | ||
if: steps.cpr.outputs.pull-request-number != '' | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const prNumber = ${{ steps.cpr.outputs.pull-request-number }}; | ||
await github.rest.pulls.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: prNumber, | ||
state: 'closed' | ||
}); | ||
console.log(`Closed PR #${prNumber}`); | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,39 +21,6 @@ jobs: | |
with: | ||
submodules: true | ||
ref: main | ||
|
||
- name: Make Keepalive Commit | ||
run: | | ||
echo "Keepalive commit at $(date)" > keepalive.txt | ||
git config --global user.name "gkr-bot" | ||
git config --global user.email "[email protected]" | ||
git add keepalive.txt | ||
git commit -m "Automated commit by Keepalive Workflow to keep the repository active" || echo "No changes to commit" | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Automated commit by Keepalive Workflow to keep the repository active" | ||
title: "Keep Repository Active" | ||
body: "This PR is automatically generated to keep the repository active." | ||
branch: keepalive-branch | ||
base: main | ||
- name: Close Pull Request | ||
if: steps.cpr.outputs.pull-request-number != '' | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const prNumber = ${{ steps.cpr.outputs.pull-request-number }}; | ||
await github.rest.pulls.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: prNumber, | ||
state: 'closed' | ||
}); | ||
console.log(`Closed PR #${prNumber}`); | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
|