File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 token : ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
2626 - id : pr-data
2727 run : |
28- echo "::set-output name= author:: $(cat event.json | jq -r '.pull_request.user.login')"
29- echo "::set-output name= number:: $(cat event.json | jq -r '.pull_request.number')"
28+ echo "author= $(cat event.json | jq -r '.pull_request.user.login')" >> "$GITHUB_OUTPUT "
29+ echo "number= $(cat event.json | jq -r '.pull_request.number')" >> "$GITHUB_OUTPUT "
3030
3131 approve :
3232 name : Approve Bot PRs
Original file line number Diff line number Diff line change 3535 source "${{ github.workspace }}/scripts/.util/builders.sh"
3636 builders="$(util::builders::list "${{ github.workspace }}/integration.json")"
3737 printf "Output: %s\n" "${builders}"
38- printf "::set-output name= builders:: %s\n" "${builders}"
38+ printf "builders= %s\n" "${builders}" >> "$GITHUB_OUTPUT "
3939
4040 integration :
4141 name : Integration Tests
9191 if [ -z "${tag}" ]; then
9292 tag="${{ steps.semver.outputs.tag }}"
9393 fi
94- echo "::set-output name= tag:: ${tag}"
94+ echo "tag= ${tag}" >> "$GITHUB_OUTPUT "
9595 - name : Package
9696 run : ./scripts/package.sh --version "${{ steps.tag.outputs.tag }}"
9797 - name : Create Release Notes
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ jobs:
1717 FULL_VERSION="$(jq -r '.release.tag_name' "${GITHUB_EVENT_PATH}" | sed s/^v//)"
1818 MINOR_VERSION="$(echo "${FULL_VERSION}" | awk -F '.' '{print $1 "." $2 }')"
1919 MAJOR_VERSION="$(echo "${FULL_VERSION}" | awk -F '.' '{print $1 }')"
20- echo "::set-output name= tag_full:: ${FULL_VERSION}"
21- echo "::set-output name= tag_minor:: ${MINOR_VERSION}"
22- echo "::set-output name= tag_major:: ${MAJOR_VERSION}"
23- echo "::set-output name= download_url:: $(jq -r '.release.assets[] | select(.name | endswith(".cnb")) | .url' "${GITHUB_EVENT_PATH}")"
20+ echo "tag_full= ${FULL_VERSION}" >> "$GITHUB_OUTPUT "
21+ echo "tag_minor= ${MINOR_VERSION}" >> "$GITHUB_OUTPUT "
22+ echo "tag_major= ${MAJOR_VERSION}" >> "$GITHUB_OUTPUT "
23+ echo "download_url= $(jq -r '.release.assets[] | select(.name | endswith(".cnb")) | .url' "${GITHUB_EVENT_PATH}")" >> "$GITHUB_OUTPUT "
2424
2525 - name : Download
2626 id : download
6363 sudo skopeo copy "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" "docker://${IMAGE}:${{ steps.event.outputs.tag_minor }}"
6464 sudo skopeo copy "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" "docker://${IMAGE}:${{ steps.event.outputs.tag_major }}"
6565 sudo skopeo copy "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" "docker://${IMAGE}:latest"
66- echo "::set-output name= image:: ${IMAGE}"
67- echo "::set-output name= digest:: $(sudo skopeo inspect "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" | jq -r .Digest)"
66+ echo "image= ${IMAGE}" >> "$GITHUB_OUTPUT "
67+ echo "digest= $(sudo skopeo inspect "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" | jq -r .Digest)" >> "$GITHUB_OUTPUT "
6868
6969 - name : Register with CNB Registry
7070 uses : docker://ghcr.io/buildpacks/actions/registry/request-add-entry:main
Original file line number Diff line number Diff line change 3535
3636 builders="$(util::builders::list "${{ github.workspace }}/integration.json")"
3737 printf "Output: %s\n" "${builders}"
38- printf "::set-output name= builders:: %s\n" "${builders}"
38+ printf "builders= %s\n" "${builders}" >> "$GITHUB_OUTPUT "
3939
4040 integration :
4141 name : Integration Tests with Builders
Original file line number Diff line number Diff line change 4444 id : title
4545 if : ${{ steps.update.outputs.new-versions != '' }}
4646 run : |
47- echo "::set-output name= include_versions:: with new dependency versions: ${{ steps.update.outputs.new-versions }}"
47+ echo "include_versions= with new dependency versions: ${{ steps.update.outputs.new-versions }}" >> "$GITHUB_OUTPUT "
4848
4949 - name : Open Pull Request
5050 if : ${{ steps.commit.outputs.commit_sha != '' }}
You can’t perform that action at this time.
0 commit comments