From a92f374e7c190855ce16193134b0dbe2a0debea2 Mon Sep 17 00:00:00 2001 From: Dan Pilch Date: Sat, 25 Jan 2025 22:52:16 +0000 Subject: [PATCH] idk --- .github/workflows/generate-pdf.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml index 654c76a..4579a6c 100644 --- a/.github/workflows/generate-pdf.yml +++ b/.github/workflows/generate-pdf.yml @@ -25,25 +25,16 @@ jobs: DATE=$(date +"%Y-%m-%d") mv resume/output/danpilch_resume.pdf resume/output/danpilch_resume_$DATE.pdf - - name: Create or Overwrite Git Tag + + - name: Create Git Tag id: create_tag run: | DATE=$(date +"%Y-%m-%d") TAG="resume-$DATE" - - # Check if the tag exists - if git rev-parse "$TAG" >/dev/null 2>&1; then - echo "Tag $TAG already exists. Overwriting it..." - git tag -d "$TAG" || true - git push --delete origin "$TAG" || true - fi - - # Create and push the new tag - git tag "$TAG" - git push origin "$TAG" + git tag $TAG + git push origin $TAG echo "tag_name=$TAG" >> $GITHUB_ENV - - name: Upload PDF to Release uses: softprops/action-gh-release@v1 with: