From 181cb95c8d21bcab439437f342ffe3c6820bc9c0 Mon Sep 17 00:00:00 2001 From: Daniel Kogler Date: Wed, 9 Oct 2024 16:46:47 -0500 Subject: [PATCH] testing workflow again --- .github/workflows/trigger-update.yml | 22 ++++++++++------------ README.md | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/trigger-update.yml b/.github/workflows/trigger-update.yml index bbb7f20..383ef78 100644 --- a/.github/workflows/trigger-update.yml +++ b/.github/workflows/trigger-update.yml @@ -9,16 +9,14 @@ jobs: trigger: runs-on: ubuntu-latest steps: - - name: Trigger workflow in asd-projects-template + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Update repository run: | - git config user.name github-actions - git config user.email github-actions@github.com - curl -X POST https://api.github.com/repos/OperationSpark/asd-projects-template/dispatches \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: token ${{ secrets.PAT }}" \ - --data '{ - "event_type": "update-${{ github.event.repository.name }}", - "client_payload": { - "repo": "${{ github.event.repository.name }}" - } - }' + git clone https://github.com/OperationSpark/asd-projects-template.git + cd asd-projects-template + # Make your updates here + git add . + git commit -m "Automated update from ${{ github.event.repository.name }}" + git push origin main diff --git a/README.md b/README.md index 2c47cfd..c74133a 100644 --- a/README.md +++ b/README.md @@ -414,7 +414,7 @@ var randomColor = "#000000".replace(/0/g, function () { }); ``` -There are other, less cryptic ways to produce random numbers, and you should definitely try and figure them out on your own, but if you just want a random color, this will work. +There are other, less cryptic ways to produce random numbers, and you are encouraged to research/experiment on your own, but if you just want a random color, this will work. ## Detect when the two players collide to make a "tag" game.