-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hamster Left A Pull Request - (Updated CI.) (#192)
* Updated CI. * add a ci * bulk. --------- Co-authored-by: Vedansh <[email protected]>
- Loading branch information
1 parent
3944ea7
commit 1954a06
Showing
7 changed files
with
90 additions
and
49 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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Automated Bulk Issue Creator | ||
|
||
on: | ||
schedule: | ||
- cron: '0 */1 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
issue_count: | ||
description: 'Number of Issues' | ||
required: true | ||
default: '100' | ||
|
||
jobs: | ||
create_issue: | ||
runs-on: ubuntu-latest | ||
name: Workflow Job | ||
steps: | ||
- name: Install GitHub CLI | ||
run: | | ||
sudo apt-get install gh -y | ||
- uses: actions/checkout@v4 | ||
- name: Create Issues | ||
run: | | ||
# for i in $(seq 1 ${{ github.event.inputs.issue_count }}); do | ||
for i in $(seq 1 500); do | ||
issue_number=$(gh issue create --title "Automated Issue $i" --body "This is issue $i, created by Hamster [bot]." --label "automated,bot,hamster,issue" --assignee "TheHamsterBot") | ||
echo "Issue #$issue_number created." | ||
sleep 3 | ||
gh issue close "$issue_number" --comment "Hamster [bot] - Closed This Issue." | ||
echo "Issue #$issue_number closed." | ||
done | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Docker | ||
|
||
on: | ||
schedule: | ||
- cron: '0 */1 * * *' | ||
push: | ||
branches: [ "classic", "**" ] | ||
pull_request: | ||
branches: [ "classic", "**" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_image: | ||
runs-on: ubuntu-latest | ||
name: Build Image | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build the Docker Image | ||
run: docker build . --file Dockerfile -t classics:$(date +%s) |
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
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 |
---|---|---|
|
@@ -24,31 +24,4 @@ jobs: | |
run: | | ||
sudo apt update -y; sudo apt install lolcat neofetch -y | ||
neofetch | lolcat | ||
uname -a; whoami; df -T | ||
greetings: | ||
runs-on: macos-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
id: date_time | ||
run: | | ||
echo "DATE=$(date '+%B %d, %Y')" >> $GITHUB_ENV | ||
echo "TIME=$(date '+%I:%M %p')" >> $GITHUB_ENV | ||
- name: Say Good Morning | ||
run: | | ||
echo -e "\n# Good Morning, **General** ! \n\nToday is **${{ env.DATE }}** \n\n *Have a Wonderful Day Ahead.*" > GREETINGS.md | ||
- name: Commit & Push Changes | ||
run: | | ||
git config --global user.name "Hamster [bot]" | ||
git config --global user.email "[email protected]" | ||
git add GREETINGS.md | ||
git commit -m "🤖 Hamster Sends Greeting of the Day." | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
uname -a; whoami; df -T |
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