diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02f7f89..3833d22 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,8 +22,6 @@ jobs: contents: read packages: write steps: - - name: debug payload - run: echo ${{ github.event.client_payload.nr_launcher_release_name }} - name: Checkout uses: actions/checkout@v3 - name: Set nigthly release @@ -40,4 +38,18 @@ jobs: tag: ${{ env.release_name }} package: ./package.json registry: https://npm.pkg.github.com - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} + - name: Generate a token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.GH_BOT_APP_ID }} + private_key: ${{ secrets.GH_BOT_APP_KEY }} + - name: Trigger flowforge package rebuild + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: publish.yml + repo: flowforge/flowforge + ref: feat-publish-pipeline-poc + token: ${{ steps.generate_token.outputs.token }} + inputs: '{"localfs_ref": "${{ github.ref }}", "localfs_release_name": "${{ env.release_name }}"}' \ No newline at end of file