Skip to content

Commit

Permalink
Merge branch 'main' of
Browse files Browse the repository at this point in the history
  • Loading branch information
tumble1999 committed Oct 15, 2023
2 parents 4fd0d59 + 02261de commit 66175d4
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

name: Update Sky Games
on:
push:
branches:
- main
repository_dispatch:

on:
deployment:
Expand All @@ -11,17 +17,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger Sky Games Build
# You may pin to the exact commit or the version.
# uses: convictional/trigger-workflow-and-wait@f69fa9eedd3c62a599220f4d5745230e237904be
uses: convictional/[email protected]
with:
# The owner of the repository where the workflow is contained.
owner: stb-gaming
# The repository where the workflow is contained.
repo: sky-games
# The Github access token with access to the repository. It is recommended you put this token under secrets.
github_token: ${{ secrets.GH_TOKEN }}
# The reference point. For example, you could use main.yml.
workflow_file_name: jekyll-gh-pages.yml
ref: master
- name: Checkout Code
uses: actions/checkout@v2


- name: Trigger Sky Games Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Use your GitHub token to trigger the workflow in the other repo
# Example using curl:
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/stb-gaming/sky-games/repo/dispatches \
-d '{"event_type": "build-event"}'

0 comments on commit 66175d4

Please sign in to comment.