Skip to content

fix: updated workflow to fire event #4

fix: updated workflow to fire event

fix: updated workflow to fire event #4

Workflow file for this run

name: 'Submodule Notify Parent'
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
notify:
name: 'Submodule Notify Parent'
runs-on: ubuntu-latest
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
# required
app-id: ${{ secrets.OSAAWEBSITEBOT_APPID }}
private-key: ${{ secrets.OSAAWEBSITEBOT_PRIVATEKEY }}
- uses: actions/github-script@v6
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
await github.repos.createDispatchEvent({
owner: 'openspaceaarhus',
repo: 'osaawebsite',
event_type: 'updateSubmodules'
})