Skip to content

Commit

Permalink
[update #5] fix workflows + new ping/pong workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tiawl authored Apr 25, 2024
2 parents ba522bd + d93abae commit f0ab49c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: tiawl/spaceporn-dep-action-bot@v1
with:
token: "${{ github.token }}"
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
repository: "${{ github.repository }}"
sha: "${{ github.sha }}"
user: "${{ matrix.repo }}.zig"
token: "${{ github.token }}"
test_build: 'false'
test_update: 'true'
test_fetch: 'true'
24 changes: 24 additions & 0 deletions .github/workflows/ping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: cd ping

on:
push:
tags:
- '*'

jobs:
ping:
permissions:
contents: write
strategy:
matrix:
repo:
- shaderc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tiawl/spaceporn-dep-action-cd-ping@v1
with:
repository_name: "${{ github.event.repository.name }}"
user: "${{ matrix.repo }}.zig"
tag: "${{ github.ref_name }}"
token: "${{ secrets.PAT }}"
22 changes: 22 additions & 0 deletions .github/workflows/pong.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: cd pong

on:
repository_dispatch:
types:
- ping

jobs:
pong:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: tiawl/spaceporn-dep-action-cd-pong@v1
if: ${{ contains(fromJSON('["toolbox"]'), github.event.client_payload.dependency) }}
with:
dependency: "${{ github.event.client_payload.dependency }}"
tag: "${{ github.event.client_payload.tag }}"
hash: "${{ github.event.client_payload.hash }}"
token: "${{ github.token }}"

0 comments on commit f0ab49c

Please sign in to comment.