You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/05/19 15:39:54 UTC
[incubator-opendal] 01/01: ci: replace set-output
This is an automated email from the ASF dual-hosted git repository.
suyanhanx pushed a commit to branch replace-set-output
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 737b9b06c3f265221f277596673a9122912c2907
Author: suyanhanx <su...@gmail.com>
AuthorDate: Fri May 19 23:39:18 2023 +0800
ci: replace set-output
Signed-off-by: suyanhanx <su...@gmail.com>
---
.github/workflows/docs.yml | 2 +-
core/src/services/vercel_artifacts/backend.rs | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 28f4a26f..57f3a7cd 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -60,7 +60,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
+ run: echo "name=dir::$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
diff --git a/core/src/services/vercel_artifacts/backend.rs b/core/src/services/vercel_artifacts/backend.rs
index d8804076..dfabc47b 100644
--- a/core/src/services/vercel_artifacts/backend.rs
+++ b/core/src/services/vercel_artifacts/backend.rs
@@ -154,4 +154,20 @@ impl VercelArtifactsBackend {
self.client.send(req).await
}
+
+ pub async fn vercel_artifacts_delete(
+ &self,
+ hash: &str,
+ ) -> Result<Response<IncomingAsyncBody>> {
+ let url = format!("https://api.vercel.com/v8/artifacts/{}", hash);
+
+ let mut req = Request::delete(&url);
+
+ let auth_header_content = format!("Bearer {}", self.access_token);
+ req = req.header(header::AUTHORIZATION, auth_header_content);
+
+ let req = req.body(AsyncBody::Empty).map_err(new_request_build_error)?;
+
+ self.client.send(req).await
+ }
}