Skip to content

Commit b0b0c2b

Browse files
authored
Updating github-config (#186)
1 parent 7a989b3 commit b0b0c2b

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/approve-bot-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
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

.github/workflows/create-draft-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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
@@ -91,7 +91,7 @@ jobs:
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

.github/workflows/push-buildpackage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
@@ -63,8 +63,8 @@ jobs:
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

.github/workflows/test-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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 != '' }}

0 commit comments

Comments
 (0)