diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be15daa..bb971e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: os: [ubuntu-latest, macOS-latest, windows-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up PDM uses: pdm-project/setup-pdm@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 527e713..32635f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,13 +13,13 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - run: npx changelogithub continue-on-error: true diff --git a/src/monas/vcs.py b/src/monas/vcs.py index 3cd594d..cb3db3d 100644 --- a/src/monas/vcs.py +++ b/src/monas/vcs.py @@ -69,13 +69,11 @@ def diff(self, ref: str) -> list[str]: def commit(self, message: str) -> None: """Commit the changes.""" - self.repo.git.add(".") + self.repo.git.add("-u") self.repo.git.commit(m=message) def tag(self, tag: str, message: str) -> None: self.repo.git.tag(tag, a=True, m=message) def push(self, including_tags: bool = True) -> None: - self.repo.git.push() - if including_tags: - self.repo.git.push("--tags") + self.repo.git.push(follow_tags=including_tags)