From 06da54772898e486860a100fd4462841b066035f Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Mon, 4 Mar 2024 12:57:44 -0600 Subject: [PATCH 1/2] update github action and version --- .github/workflows/docker.yaml | 2 +- sample-extractors/wordcount/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index af7076b..748f0d3 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -37,7 +37,7 @@ jobs: include: - name: wordcount FOLDER: sample-extractors/wordcount - PLATFORM: "linux/amd64,linux/arm64" + PLATFORM: "linux/amd64" steps: - uses: actions/checkout@v2 diff --git a/sample-extractors/wordcount/requirements.txt b/sample-extractors/wordcount/requirements.txt index 8da8d99..7c54c75 100644 --- a/sample-extractors/wordcount/requirements.txt +++ b/sample-extractors/wordcount/requirements.txt @@ -1 +1 @@ -pyclowder==3.0.2 +pyclowder==3.0.7 From f50ee92589623107fb00fe661b0c3413281d0158 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Mon, 4 Mar 2024 13:08:07 -0600 Subject: [PATCH 2/2] this repo doesn't have main --- .github/workflows/docker.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 748f0d3..c1583e3 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -3,7 +3,7 @@ name: Docker # This will run when: # - a new release is created, to make sure the right tags of the # docker images are pushed (expects tags to be v1.8.4). -# - when new code is pushed to main/develop to push the tags +# - when new code is pushed to master/develop to push the tags # latest and develop # - when a pull request is created and updated to make sure the # Dockerfile is still valid. @@ -18,7 +18,7 @@ on: pull_request: -# Certain actions will only run when this is the main repo. +# Certain actions will only run when this is the master repo. env: MAIN_REPO: clowder-framework/pyclowder DOCKERHUB_ORG: clowder @@ -56,7 +56,7 @@ jobs: # should we push to dockerhub, and is there a README DOCKERHUB_PUSH="false" DOCKERHUB_README="false" - if [ "$BRANCH" == "main" -a "${{ github.repository }}" == "${{ env.MAIN_REPO }}" ]; then + if [ "$BRANCH" == "master" -a "${{ github.repository }}" == "${{ env.MAIN_REPO }}" ]; then if [ "${{ secrets.DOCKERHUB_USERNAME }}" != "" -a "${{ secrets.DOCKERHUB_PASSWORD }}" != "" ]; then DOCKERHUB_PUSH="true" if [ -e "${{ matrix.FOLDER }}/README.md" ]; then @@ -66,7 +66,7 @@ jobs: fi # calculate the version and all tags - if [ "$BRANCH" == "main" ]; then + if [ "$BRANCH" == "master" ]; then VERSION="$(awk '/"version":/ { print $2 }' ${{ matrix.FOLDER }}/extractor_info.json | sed 's/^.*"\([0-9\.]*\)".*$/\1/')" tags="latest" oldversion=""