Refactor devcontainer build step in release workflow: Add step to dum… #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'release' | |
on: | |
# rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- develop | |
permissions: | |
# write-all is too much, but we need to write to packages | |
# see https://github.com/orgs/community/discussions/57724 for more info | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- build-dev-container-image | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: display output name | |
run: echo "image_name=${{ needs.build_dev_container_image.outputs.image_name }}" | |
- name: Dump GitHub Needs context | |
env: | |
NEEDS_CONTEXT: ${{ toJson(needs) }} | |
run: echo "$NEEDS_CONTEXT" | |
build-dev-container-image: | |
uses: ./.github/workflows/build-devcontainer-image.yaml | |