forked from jumpstarter-dev/jumpstarter-python
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 985 Bytes
/
trigger-packages-index.yaml
File metadata and controls
36 lines (32 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Trigger Packages Index Generation
on:
push:
branches:
- main
- release-*
tags:
- '*'
env:
TRIGGER: >
${{
github.repository_owner == 'jumpstarter-dev' &&
(github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/tags/') ||
startsWith(github.ref, 'refs/heads/release-'))
}}
jobs:
trigger-packages-index:
runs-on: ubuntu-latest
if: env.TRIGGER == 'true'
steps:
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
id: app-token
with:
app-id: ${{ secrets.JUMPSTARTER_BACKPORT_BOT_APP_ID }}
private-key: ${{ secrets.JUMPSTARTER_BACKPORT_BOT_PRIVATE_KEY }}
- name: Trigger packages repository index generation
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.app-token.outputs.token }}
repository: jumpstarter-dev/packages
event-type: generate-index