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

Fixing bugs with not showing the full error in comments #18

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from 1 commit
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
Next Next commit
Create processed_files if not exist and print the complete error in t…
…he github comment
arash77 committed May 14, 2024

Verified

This commit was signed with the committer’s verified signature.
armancodv Arman Kolahan
commit 633819008b26c6509fb4f9ed1c135af904988b0e
11 changes: 11 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -22,6 +22,17 @@ jobs:
files: posts/**
json: "true"

- name: Create processed_files if not exist
arash77 marked this conversation as resolved.
Show resolved Hide resolved
if: steps.get_changed_files.outputs.any_changed == 'true'
run: |
if ! git show-ref --verify --quiet refs/heads/processed_files; then
git checkout --orphan processed_files
echo "" > processed_files.json
git add processed_files.json
git commit -m "Create processed_files"
git push origin processed_files
fi
- name: get published files cache
if: steps.get_changed_files.outputs.any_changed == 'true'
run: |
11 changes: 11 additions & 0 deletions .github/workflows/publish_content.yml
Original file line number Diff line number Diff line change
@@ -22,6 +22,17 @@ jobs:
with:
files: posts/**
json: "true"

- name: Create processed_files if not exist
if: steps.get_changed_files.outputs.any_changed == 'true'
run: |
if ! git show-ref --verify --quiet refs/heads/processed_files; then
git checkout --orphan processed_files
echo "" > processed_files.json
git add processed_files.json
git commit -m "Create processed_files"
git push origin processed_files
fi
- name: get published files cache
if: steps.get_changed_files.outputs.any_changed == 'true'
6 changes: 4 additions & 2 deletions github_run.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
import fnmatch
import os
import sys
import traceback

import requests

@@ -92,6 +93,7 @@ def get_files(self):
gs = galaxy_social(args.preview, args.json_out)
try:
message = gs.process_files(files_to_process)
github.comment(message)
except Exception as e:
message = e
github.comment(message)
github.comment(traceback.format_exc())
arash77 marked this conversation as resolved.
Show resolved Hide resolved
raise e