From 0a11e19a19617bf96170e0f22ac9b8324adf2bc7 Mon Sep 17 00:00:00 2001 From: Charlie Marshak Date: Tue, 19 Nov 2024 15:01:25 -0800 Subject: [PATCH] add more actions --- .github/workflows/changelog-update.yml | 16 ++++++++++++++ .github/workflows/docker_build.yml | 29 ++++++++++++++++++++++++++ .github/workflows/labeled-pr.yml | 15 +++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .github/workflows/changelog-update.yml create mode 100644 .github/workflows/docker_build.yml create mode 100644 .github/workflows/labeled-pr.yml diff --git a/.github/workflows/changelog-update.yml b/.github/workflows/changelog-update.yml new file mode 100644 index 0000000..1c7095a --- /dev/null +++ b/.github/workflows/changelog-update.yml @@ -0,0 +1,16 @@ +name: Changelog updated? + +on: + pull_request: + types: + - opened + - labeled + - unlabeled + - synchronize + branches: + - main + - dev + +jobs: + call-changelog-check-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.11.2 diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml new file mode 100644 index 0000000..e6a2d47 --- /dev/null +++ b/.github/workflows/docker_build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + +jobs: + call-version-info-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.12.0 + with: + conda_env_name: dist-s1-env + + call-docker-ghcr-workflow: + needs: call-version-info-workflow + uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.12.0 + with: + version_tag: ${{ needs.call-version-info-workflow.outputs.version_tag }} + user: ${{ github.actor }} + release_branch: main + develop_branch: develop + file: Dockerfile + secrets: + USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/labeled-pr.yml b/.github/workflows/labeled-pr.yml new file mode 100644 index 0000000..c2770dc --- /dev/null +++ b/.github/workflows/labeled-pr.yml @@ -0,0 +1,15 @@ +name: Is PR labeled? + +on: + pull_request: + types: + - opened + - labeled + - unlabeled + - synchronize + branches: + - main + +jobs: + call-labeled-pr-check-workflow: + uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.11.2 \ No newline at end of file