Skip to content

Commit

Permalink
Keep alive (#314)
Browse files Browse the repository at this point in the history
* remove keep alive
  • Loading branch information
robsdavis authored Jan 6, 2025
1 parent 208c6be commit 7b948c7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 100 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/test_all_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/test_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/test_tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b948c7

Please sign in to comment.