We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f92cc commit 6a1cc4dCopy full SHA for 6a1cc4d
1 file changed
.github/workflows/random-commit.yml
@@ -19,12 +19,12 @@ jobs:
19
- name: Show random number
20
run: echo "Random number was $RANDOM_NUMBER"
21
22
- - name: Maybe commit (if number is 0-5)
+ - name: Maybe commit (if number is 0–5)
23
if: ${{ env.RANDOM_NUMBER <= 5 }}
24
run: |
25
echo "Logging activity at $(date)" >> activity.txt
26
- git config --global user.name "github-actions[bot]"
27
- git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git config --global user.name "GitHub Bot"
+ git config --global user.email "bot@example.com"
28
git add activity.txt
29
git commit -m "Random activity $(date)"
30
- git push
+ git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git
0 commit comments