Skip to content

Refactor devcontainer build step in release workflow: Update release.… #26

Refactor devcontainer build step in release workflow: Update release.…

Refactor devcontainer build step in release workflow: Update release.… #26

Workflow file for this run

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_devcontainer_image:
uses: ./.github/workflows/build-devcontainer-image.yaml
build:
runs-on: ubuntu-latest
needs:
- build_devcontainer_image
steps:
- name: checkout branch from git
uses: actions/checkout@v4
- name: display output name
run: echo "image_name=${{ needs.build_devcontainer_image.outputs.image_name }}"
- uses: "./.github/shared/actions/devcontainer-shell-run"
id: build_project
with:
runCmd: |
echo "vorher"
echo "WP_ENV_HOME=${WP_ENV_HOME} !"
echo "nachher"
- name: print output
run: echo "stdout was=${{ steps.build_project.outputs.stdout }}"