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

Don't specify the password on the command line #22

Merged
merged 3 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
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
23 changes: 20 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -19,7 +20,7 @@ jobs:
git add -A \*.html &&
git diff-index --cached --exit-code HEAD -- ||
echo "need-to-commit=yes" >>$GITHUB_OUTPUT
- name: commit & push
- name: commit
if: steps.check.outputs.need-to-commit == 'yes'
run: |
git config user.name "${{github.actor}}" &&
Expand All @@ -28,5 +29,21 @@ jobs:
git update-index --refresh &&
git diff-files --exit-code &&
git diff-index --cached --exit-code HEAD -- &&
git push

git bundle create git.bundle ${{ github.event.pull_request.head.sha }}..${{ github.event.pull_request.head.ref }}
- name: commit
if: steps.check.outputs.need-to-commit == 'yes' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
run: git push
- name: publish bundle
id: bundle
if: steps.check.outputs.need-to-commit == 'yes' && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
uses: actions/upload-artifact@v4
with:
name: bundle
path: git.bundle
- name: instructions how to fetch bundle
if: steps.check.outputs.need-to-commit == 'yes' && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
run: |
body='The HTML pages are out of date. Please download the `bundle` artifact from ${{ steps.bundle.outputs.artifact-url }}, extract the `git.bundle` file from it, then run `git pull /path/to/git.bundle ${{ github.event.pull_request.head.ref }}` and then push to the PR branch'
echo "::error::$body" >&2
echo "$body" >>$GITHUB_STEP_SUMMARY
exit 1
2 changes: 1 addition & 1 deletion reply-to-this.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3 id="if-your-mail-program-stores-mails-in-maildir-format-thunderbird-mutt-alp
<p>Simply copy the file to the <code>new</code> subfolder in your mailer&#39;s maildir folder.</p>
<h3 id="if-you-use-webmail-gmail-and-friends">If you use webmail (GMail and friends)</h3>
<p>You can use the command-line tool <code>curl</code> (provided that your version has IMAP support):</p>
<pre><code class="language-sh">curl -g --user &quot;&lt;email&gt;:&lt;password&gt;&quot; --url &quot;imaps://imap.gmail.com/INBOX&quot; -T /path/to/raw.txt
<pre><code class="language-sh">curl -g --user &quot;&lt;email&gt;&quot; --url &quot;imaps://imap.gmail.com/INBOX&quot; -T /path/to/raw.txt
</code></pre>

</div>
Expand Down
2 changes: 1 addition & 1 deletion reply-to-this.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Simply copy the file to the `new` subfolder in your mailer's maildir folder.
You can use the command-line tool `curl` (provided that your version has IMAP support):

```sh
curl -g --user "<email>:<password>" --url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt
curl -g --user "<email>" --url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt
```