Skip to content

Auto Workflow

Auto Workflow #5529

Workflow file for this run

name: Auto Workflow
on:
schedule:
- cron: '*/1 * * * *' # Run every minute
workflow_dispatch:
jobs:
process_users:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Process Users
run: |
users=(
"cool.duck@qua.ck" "xianger94@gmail.com" "tldrbotgithub@gmail.com"
"dante9000@gmail.com" "schacon@gmail.com" "circleci.ossci@gmail.com"
"destinyitemmanager@gmail.com" "gnodet@gmail.com" "sampleAuthor@gmail.com"
"zhiweik@gmail.com" "kurmanov.work@gmail.com" "zuoge85@gmail.com"
"erik.dubois@gmail.com" "corre@gmail.com" "john@smith.org"
"bg7nyt@gmail.com" "3n1b.com@gmail.com" "cpyarger@gmail.com"
"avarab@gmail.com" "ada.lovelace@gmail.com"
)
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