Skip to content

ci: pass GITHUB_TOKEN to gh workflow call in release-please.yml. (#150) #5

ci: pass GITHUB_TOKEN to gh workflow call in release-please.yml. (#150)

ci: pass GITHUB_TOKEN to gh workflow call in release-please.yml. (#150) #5

on:
push:
branches:
- main
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
# https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-actions
permissions:
contents: write
pull-requests: write
actions: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
- name: Realease FAB frontend and backend images and upload to ghcr.io
run: gh workflow run fab-docker.yml -f tag=${{ steps.release.outputs.tag_name }}
if: ${{ steps.release.outputs.release_created }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Realease FAB Flatland 3 compute worker, evaluator and submission template images and upload to ghcr.io
run: gh workflow run fab-flatland-docker.yml -f tag=${{ steps.release.outputs.tag_name }}
if: ${{ steps.release.outputs.release_created }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}