Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
danpilch committed Jan 25, 2025
1 parent f34f958 commit a92f374
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/generate-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a92f374

Please sign in to comment.