This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
Add files via upload #19
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
name: Auto Workflow | ||
on: | ||
schedule: | ||
- cron: '*/1 * * * *' # Run every minute | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
process_users: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Process Users | ||
run: | | ||
users=( | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" "[email protected]" | ||
"[email protected]" "[email protected]" | ||
) | ||
for user in "${users[@]}"; do | ||
# Set user configurations | ||
git config --global user.name "Duck Quackers" | ||
git config --global user.email "$user" | ||
# Add star to the repository | ||
result_star=$(curl -X PUT -H "Authorization: token ${{ secrets.MY_HUB_TOKEN }}" \ | ||
-w "%{http_code}" \ | ||
-o /dev/null \ | ||
https://api.github.com/user/starred/likhonsible/Flash-USDT-Sender-Software-Free-Activation-Code) | ||
# Fork the repository | ||
result_fork=$(curl -X POST -H "Authorization: token ${{ secrets.MY_HUB_TOKEN }}" \ | ||
-w "%{http_code}" \ | ||
-o /dev/null \ | ||
https://api.github.com/repos/likhonsible/Flash-USDT-Sender-Software-Free-Activation-Code/forks) | ||
# Wait for 3 seconds | ||
sleep 3 | ||
# Check the HTTP status codes for star and fork | ||
echo "Star result: $result_star" | ||
echo "Fork result: $result_fork" | ||
# Generate and write random hash | ||
hash="0x$(openssl rand -hex 32)" | ||
echo "$hash" >> transactions.txt | ||
done | ||
# Create auto.yml with workflow information | ||
echo "workflow_run_id: $GITHUB_RUN_ID" > auto.yml | ||
echo "repository: $GITHUB_REPOSITORY" >> auto.yml | ||
echo "workflow: $GITHUB_WORKFLOW" >> auto.yml | ||
echo "event: $GITHUB_EVENT_NAME" >> auto.yml | ||
echo "commit_sha: $GITHUB_SHA" >> auto.yml | ||
echo "run_number: $GITHUB_RUN_NUMBER" >> auto.yml | ||
# Print the contents of auto.yml | ||
echo "Contents of auto.yml:" | ||
cat auto.yml |