aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-01-21 17:41:50 +0000
committerGravatar GitHub <[email protected]>2023-01-21 17:41:50 +0000
commit33986abaf4199bd7981e6b65e18f19e705aef1e0 (patch)
treecffd07c99a2ca3f17f2cbf3d2e23d47fb7ba76ef
parentMerge pull request #853 from python-discord/dependabot/pip/flake8-bugbear-23.... (diff)
parentUpdate version referenced in comment (diff)
Merge pull request #854 from python-discord/improve-actions-workflows
Stop using deprecated set-output command in actions
-rw-r--r--.github/workflows/build.yaml4
-rw-r--r--.github/workflows/deploy.yaml2
-rw-r--r--.github/workflows/static-preview.yaml4
-rw-r--r--.github/workflows/status_embed.yaml8
4 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index eb8b92dc..dccca6a5 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -20,12 +20,12 @@ jobs:
id: sha_tag
run: |
tag=$(cut -c 1-7 <<< $GITHUB_SHA)
- echo "::set-output name=tag::$tag"
+ echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v3
- # The current version (v2) of Docker's build-push action uses
+ # The current version (v3) of Docker's build-push action uses
# buildx, which comes with BuildKit features that help us speed
# up our builds using additional cache features. Buildx also
# has a lot of other features that are not as relevant to us.
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index d4c6fecb..f27690f0 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -20,7 +20,7 @@ jobs:
id: sha_tag
run: |
tag=$(cut -c 1-7 <<< $GITHUB_SHA)
- echo "::set-output name=tag::$tag"
+ echo "tag=$tag" >> $GITHUB_OUTPUT
# Check out the private Kubernetes repository for the
# deployment.yaml file using a GitHub Personal Access
diff --git a/.github/workflows/static-preview.yaml b/.github/workflows/static-preview.yaml
index 476f2377..7c50c8de 100644
--- a/.github/workflows/static-preview.yaml
+++ b/.github/workflows/static-preview.yaml
@@ -14,12 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- # Create a commit SHA-based tag for the container repositories
+ # Create a commit SHA-based tag for the container repositories
- name: Create SHA Container Tag
id: sha_tag
run: |
tag=$(cut -c 1-7 <<< $GITHUB_SHA)
- echo "::set-output name=tag::$tag"
+ echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
diff --git a/.github/workflows/status_embed.yaml b/.github/workflows/status_embed.yaml
index 6c773d4d..e9b283cd 100644
--- a/.github/workflows/status_embed.yaml
+++ b/.github/workflows/status_embed.yaml
@@ -44,10 +44,10 @@ jobs:
wget --quiet --header="Authorization: token $GITHUB_TOKEN" -O pull_request_payload.zip $DOWNLOAD_URL || exit 2
unzip -p pull_request_payload.zip > pull_request_payload.json
[ -s pull_request_payload.json ] || exit 3
- echo "::set-output name=pr_author_login::$(jq -r '.user.login // empty' pull_request_payload.json)"
- echo "::set-output name=pr_number::$(jq -r '.number // empty' pull_request_payload.json)"
- echo "::set-output name=pr_title::$(jq -r '.title // empty' pull_request_payload.json)"
- echo "::set-output name=pr_source::$(jq -r '.head.label // empty' pull_request_payload.json)"
+ echo "pr_author_login=$(jq -r '.user.login // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT
+ echo "pr_number=$(jq -r '.number // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT
+ echo "pr_title=$(jq -r '.title // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT
+ echo "pr_source=$(jq -r '.head.label // empty' pull_request_payload.json)" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}