Skip to content

Commit

Permalink
trying with explicitly defined branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
puja-trivedi committed Dec 4, 2024
1 parent bb1d061 commit 39f07cb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/generate_yaml_model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ jobs:
# git config user.email "github-actions[bot]@users.noreply.github.com"

# Step 5: Create a new branch
- name: Create a new branch
run: |
BRANCH_NAME="autogenerated-yaml-$(date +%Y%m%d%H%M%S)"
git checkout -b "$BRANCH_NAME"
echo "Branch created: $BRANCH_NAME"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
# - name: Create a new branch
# run: |
# BRANCH_NAME="autogenerated-yaml-$(date +%Y%m%d%H%M%S)"
# # git checkout -b "$BRANCH_NAME"
# echo "Branch created: $BRANCH_NAME"
# echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV

# # Step 6: Add and commit the new file
# - name: Commit the new file
Expand All @@ -73,7 +73,8 @@ jobs:
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
commit-message: "Generate new version of the linkml model"
branch: ${{ env.BRANCH_NAME }}
# branch: ${{ env.BRANCH_NAME }}
branch: autogeneratedyamlTEST
title: "Auto PR: yaml generated from google spreadsheets using schemasheets"
body: "This PR adds a autogenerated yaml file."
base: main

0 comments on commit 39f07cb

Please sign in to comment.