From c5a3fdfb3a50dda388ba4fe81ad31a546c671b0a Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Mon, 21 Oct 2024 10:31:00 +0800 Subject: [PATCH] ci: updated workflow --- .github/workflows/docker-crawlab.yml | 12 +++++++----- backend/README.md | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-crawlab.yml b/.github/workflows/docker-crawlab.yml index 8e383ba4..40a4cbc3 100644 --- a/.github/workflows/docker-crawlab.yml +++ b/.github/workflows/docker-crawlab.yml @@ -58,9 +58,11 @@ jobs: is_matched_dockerfile=1 fi - echo "::set-output name=is_matched_backend::$is_matched_backend" - echo "::set-output name=is_matched_frontend::$is_matched_frontend" - echo "::set-output name=is_matched_dockerfile::$is_matched_dockerfile" + # Update outputs + echo "is_matched_backend=$is_matched_backend" >> $GITHUB_OUTPUT + echo "is_matched_frontend=$is_matched_frontend" >> $GITHUB_OUTPUT + echo "is_matched_dockerfile=$is_matched_dockerfile" >> $GITHUB_OUTPUT + # echo outputs echo "is_matched_backend=$is_matched_backend" echo "is_matched_frontend=$is_matched_frontend" @@ -78,7 +80,7 @@ jobs: # Use Docker `latest` tag convention [ "$VERSION" == "main" ] && VERSION=latest - echo "::set-output name=version::$VERSION" + echo "version=$VERSION" >> $GITHUB_OUTPUT test_backend: needs: [ setup ] @@ -250,7 +252,7 @@ jobs: fi push_images: - if: ${{ success() && needs.build_crawlab.result == 'success' }} + if: ${{ needs.build_crawlab.result == 'success' }} needs: [setup, build_crawlab] runs-on: ubuntu-latest strategy: diff --git a/backend/README.md b/backend/README.md index a1d4b01a..bd6eb122 100644 --- a/backend/README.md +++ b/backend/README.md @@ -1,3 +1,3 @@ # crawlab-backend -Backend (Golang) for Crawlab +Backend (Golang) for Crawlab \ No newline at end of file