-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first commit updates Update README and LaTeX build configuration with correct repository name Update update.yml update updates update update template
- Loading branch information
1 parent
96bb6bd
commit ae962bd
Showing
45 changed files
with
508 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Inhaltlicher Fehler | ||
description: Hilf uns Fehler zu Verbessern | ||
title: '' | ||
labels: [bug] | ||
assignees: [] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,38 @@ | ||
name: Update README and LaTeX Build File | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-files-and-rename-tex: | ||
update-and-create-pr: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract repository name | ||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | sed 's|.*/||')" >> $GITHUB_ENV | ||
|
||
- name: Update README | ||
run: | | ||
sed -i "1s/.*/# ${{ env.REPO_NAME }}/" README.md | ||
sed -i "/Actions Status/c\[![Actions Status](https://github.com/${{ github.repository }}/workflows/CI/badge.svg)](https://github.com/${{ github.repository }})" README.md | ||
- name: Update CMakeLists.txt with new LaTeX file name | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12.2' | ||
|
||
- name: Run update script | ||
run: python scripts/update_files.py | ||
- name: Configure Git | ||
run: | | ||
sed -i "/project(/c\\project(${{ env.REPO_NAME }} NONE)" CMakeLists.txt | ||
sed -i "0,/[^ ]*\.tex/s//${{ env.REPO_NAME }}.tex/" CMakeLists.txt | ||
- name: Setup Git | ||
git config user.name "github-actions[bot]" | ||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- name: Commit changes to a new branch | ||
run: | | ||
git config --local user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --local user.name "${{ github.actor }}" | ||
- name: Commit and push if changed | ||
git checkout -b changes/${{ github.run_id }} | ||
git add . | ||
git commit -m "Apply automated updates" | ||
git push -u origin changes/${{ github.run_id }} | ||
- name: Create Pull Request | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git add README.md CMakeLists.txt | ||
git diff --staged --quiet || git commit -m "Update README and LaTeX build configuration with correct repository name" | ||
git push | ||
gh pr create --base main --head changes/${{ github.run_id }} --title "Specify project URLs and CMake project" --body "Please review the changes applied by the automated script." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,3 +111,4 @@ sympy-plots-for-*.tex/ | |
|
||
# xindy | ||
*.xdy | ||
git.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.