In a github actions workflow, is there a way to have multiple jobs reuse the same setup?

As of today (August 2021) composite action is no longer limited to run. GitHub Actions: Reduce duplication with action composition name: “Publish to Docker” description: “Pushes built artifacts to Docker” inputs: registry_username: description: “Username for image registry” required: true registry_password: description: “Password for image registry” required: true runs: using: “composite” steps: – uses: docker/setup-buildx-action@v1 – … Read more

How do I set an env var with a bash expression in GitHub Actions?

The original answer to this question used the Actions runner function set-env. Due to a security vulnerability set-env is being deprecated and should no longer be used. This is the new way to set environment variables. name: my workflow on: push jobs: build: runs-on: ubuntu-latest steps: – uses: actions/checkout@v2 – name: Set env run: echo … Read more

tech