forked from ScratchAddons/ScratchAddons
-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (26 loc) · 875 Bytes
/
update-addons-data.yml
File metadata and controls
30 lines (26 loc) · 875 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
name: Update website addons data
on:
release:
types: [released]
# Want to trigger manually? Go to the link below.
# https://github.com/ScratchAddons/website-v2/actions/workflows/update-addons-data.yml
jobs:
update:
name: Update
runs-on: ubuntu-latest
if: github.repository_owner == 'ScratchAddons'
steps:
- name: Generate token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Invoke workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Addons Data Update
repo: ScratchAddons/website-v2
token: ${{ steps.generate-token.outputs.token }}
ref: refs/heads/master
inputs: '{ "ref": "${{ github.event.release.tag_name }}" }'