Skip to content

Commit

Permalink
Update file "issue templates.yml"
Browse files Browse the repository at this point in the history
  • Loading branch information
JSarthurliao authored Dec 19, 2024
1 parent 1be630b commit d0cd2ed
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/issue templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,17 @@ jobs:
# Check if ".github/ISSUE_TEMPLATE/bug.yml" body[1] placeholder exists
if grep -q "$placeholder_to_replace" .github/ISSUE_TEMPLATE/bug.yml; then
# Check if placeholder to replace is same as the last branch name
if $new_placeholder==$placeholder_to_replace; then
if [ "$new_placeholder" == "$placeholder_to_replace" ]; then
#Change placeholder
sed -i "s/$placeholder_to_replace/$new_placeholder/g" .github/ISSUE_TEMPLATE/bug.yml
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit -am "Update file 'bug.yml' placeholder"
git push
echo "Placeholder updated successfully."
else
echo "Placeholder failed to update."
else
echo "The last branch name is same as the
echo "The last branch name is same as the current one!"
fi
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit -am "Update file 'bug.yml' placeholder"
git push

0 comments on commit d0cd2ed

Please sign in to comment.