कैसे कर सकते हैं मैं एक नौकरी github में कार्रवाई चलाने के लिए बेतरतीब ढंग से 1 के बीच और 50 बार एक दिन में?
यहाँ है मेरे क्रॉन नौकरी.
क्रॉन: '0 0 * * *'
यह चला जाएगा एक दिन में एक बार.
लेकिन मैं क्या चाहता है को चलाने के लिए बेतरतीब ढंग से 1-50 बार एक दिन.
कैसे क्या मैं बनाने के लिए यह काम बेतरतीब ढंग से 1 से 50 करने के लिए?
नीचे है मेरी git कार्रवाई की yml सेटिंग फ़ाइल के रूप में workflows
#1. Repository Fork
# 2. Modify the files A and B according to the procedure
# 3. After committing the modifications, push & Enjoy!
name: planting-grass
# A. Comment lines 8-11
# on:
# push:
# branches:
# - unknown
# B. Uncomment lines 14-16
on:
schedule:
- cron: '0 0 * * *'
jobs:
task:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Execute commands
run: bash ./task.sh ${{ steps.date.outputs.date }}
- name: Commit files
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
git add date.txt
git commit -m ${{ steps.date.outputs.date }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
क्रॉन नौकरियों और यादृच्छिक समय के भीतर दिए घंटे विधि के माध्यम से इस पद पर काम नहीं करता है.
सबसे अच्छा संबंध है!