MuhammadTahaNaveed commented on code in PR #1454:
URL: https://github.com/apache/age/pull/1454#discussion_r1435105939


##########
.github/workflows/python-driver.yaml:
##########
@@ -21,15 +21,11 @@ jobs:
     - name: Set tag based on branch
       run: |
         if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
-          if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
+          if [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV
           fi
         elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
-          if [[ "$GITHUB_BASE_REF" == "master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
+          if [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV

Review Comment:
   There's no need for these if conditions here... It should be just
   ```
   run: |
     echo "TAG=PG16_latest" >> $GITHUB_ENV
   ```



##########
.github/workflows/nodejs-driver.yaml:
##########
@@ -21,15 +21,11 @@ jobs:
     - name: Set tag based on branch
       run: |
         if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
-          if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
+          if [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV
           fi
         elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
-          if [[ "$GITHUB_BASE_REF" == "master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
+          if [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV

Review Comment:
   There's no need for these if conditions here... It should be just
   ```
   run: |
     echo "TAG=PG16_latest" >> $GITHUB_ENV
   ```



##########
.github/workflows/jdbc-driver.yaml:
##########
@@ -26,15 +26,11 @@ jobs:
     - name: Set tag based on branch
       run: |
         if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
-          if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
+          if [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV
           fi
         elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
-          if [[ "$GITHUB_BASE_REF" == "master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
+          if [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV

Review Comment:
   There's no need for these if conditions here... It should be just
   ```
   run: |
     echo "TAG=PG16_latest" >> $GITHUB_ENV
   ```



##########
.github/workflows/go-driver.yml:
##########
@@ -24,15 +24,11 @@ jobs:
     - name: Set tag based on branch
       run: |
         if [[ "$GITHUB_EVENT_NAME" == "push" ]]; then
-          if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
+          if [[ "$GITHUB_REF" == "refs/heads/PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV
           fi
         elif [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
-          if [[ "$GITHUB_BASE_REF" == "master" ]]; then
-            echo "TAG=latest" >> $GITHUB_ENV
-          elif [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
+          if [[ "$GITHUB_BASE_REF" == "PG16" ]]; then
             echo "TAG=PG16_latest" >> $GITHUB_ENV

Review Comment:
   There's no need for these if conditions here... It should be just
   ```
   run: |
     echo "TAG=PG16_latest" >> $GITHUB_ENV
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to