From 76477b34919d4e23b66f3c5c086edbb2abdd13e6 Mon Sep 17 00:00:00 2001 From: kchason Date: Thu, 25 Jan 2024 13:24:20 -0500 Subject: [PATCH] Switch logic for annotation check --- .github/workflows/annotate.yml | 13 +------------ Dockerfile | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/annotate.yml b/.github/workflows/annotate.yml index a06c820..f5c4032 100644 --- a/.github/workflows/annotate.yml +++ b/.github/workflows/annotate.yml @@ -4,7 +4,7 @@ on: [ pull_request ] jobs: annotate: - # if: github.event.pull_request.head.user == 'kchason' + if: github.event.pull_request.head.user.name == 'kchason' runs-on: ubuntu-latest steps: @@ -12,17 +12,6 @@ jobs: - name: Get Repo uses: actions/checkout@v3 - - name: Debug - run: | - echo "User: ${{ github.event.pull_request.head.user }}" - echo "Source Repo: ${{ github.event.pull_request.head.repo.full_name }}" - echo "Source Branch: ${{ github.event.pull_request.head.ref }}" - echo "Target Repo: ${{ github.event.pull_request.base.repo.full_name }}" - echo "Target Branch: ${{ github.event.pull_request.base.ref }}" - echo "Repo: ${{ github.repository }}" - echo "PR: ${{ github.event.pull_request.number }}" - echo "Branch: ${{ github.event.pull_request.head.ref }}" - - name: Annotate - Directory No Filter uses: ./ with: diff --git a/Dockerfile b/Dockerfile index dd492bf..1d0d9b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 python:3.11-slim-bullseye +FROM python:3.11-slim-bullseye # This is based on guidance in https://github.com/casework/CASE-Utilities-Python/tree/main WORKDIR /opt/workspace