Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate triggering of doc-update on release #62

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update OpenTelemetry Website Docs

on:
# triggers only on a manual dispatch
release:
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,4 +33,4 @@ jobs:
git push -u origin HEAD:docs-$GITHUB_REPOSITORY-$GITHUB_SHA
gh pr create -t "Docs Update from $GITHUB_REPOSITORY" -b "This is an automated pull request." -B main -H docs-$GITHUB_REPOSITORY-$GITHUB_SHA
echo "done"


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job with the PR! Does anyone know why this new line was added? @Aneurysm9

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

POSIX defines a text file as a file that contains characters organized into zero or more lines,[4] where lines are sequences of zero or more non-newline characters plus a terminating newline character,[5] normally LF.
Source

It looks to me like this file previously did not have a terminating newline character on the last line.