Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Create just.yml

Create just.yml #25

Workflow file for this run

name: Auto Workflow

Check failure on line 1 in .github/workflows/auto Workflow.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/auto Workflow.yml

Invalid workflow file

`on` is not a valid event name
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