Skip to content

Commit

Permalink
Merge pull request #255 from ThePooN/trigger-private-build
Browse files Browse the repository at this point in the history
👷 Trigger remote tag and build on private repo
  • Loading branch information
peppy authored Apr 12, 2024
2 parents 18021df + d62d448 commit e57d14d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,28 @@ jobs:
uses: actions/checkout@v4
-
name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
with:
token: ${{ secrets.KUBERNETES_CONFIG_REPO_ACCESS_TOKEN }}
repository: ppy/osu-kubernetes-config
event-type: dev-ppy-sh-deploy
client-payload: '{ "values": { "osu-queue-score-statistics": { "image": { "tag": "${{ github.sha }}" } } } }'

trigger_private_build:
if: ${{ github.ref_type == 'tag' }}
runs-on: ubuntu-latest
needs:
- push_to_registry
environment: production
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Invoke tag workflow in private repo
uses: benc-uk/workflow-dispatch@25b02cc069be46d637e8fe2f1e8484008e9e9609 # v1.2.3
with:
token: ${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}
repo: ppy/osu-queue-score-statistics-private
workflow: tag.yml
inputs: '{ "tag": "${{ github.ref_name }}" }'

0 comments on commit e57d14d

Please sign in to comment.