diff --git a/.github/workflows/data-processing.yml b/.github/workflows/data-processing.yml index 39b1db9709f..6312513cbe8 100644 --- a/.github/workflows/data-processing.yml +++ b/.github/workflows/data-processing.yml @@ -241,6 +241,32 @@ jobs: exit 1 fi + #======================================== + # Update FReD citation (Weekly or Manual) + #======================================== + - name: Update FReD Citation + continue-on-error: true # Continue even if this step fails + run: | + echo "=== Updating FReD citation ===" + + # Check if it's a Sunday (day 0) OR manually triggered + CURRENT_DAY_OF_WEEK=$(date +%u) + if [ "$CURRENT_DAY_OF_WEEK" != "7" ] && [ "${{ github.event_name }}" != "workflow_dispatch" ]; then + echo "ℹ️ Skipping FReD citation update (not Sunday and not manual trigger)" + exit 0 + fi + + echo "🔄 Running FReD citation update..." + python3 scripts/update_fred_citation.py + + if [ -f "static/data/fred_citation.txt" ]; then + echo "✅ FReD citation updated successfully" + echo "Citation length: $(wc -c < static/data/fred_citation.txt) bytes" + else + echo "❌ FReD citation file was not created" + exit 1 + fi + #======================================================= # Create a pull request for GA data updates on monthly runs #======================================================= @@ -320,6 +346,7 @@ jobs: content/curated_resources/ content/glossary/ data/ + static/data/ content/contributor-analysis/ content/publications/citation_chart.webp retention-days: 7 @@ -342,6 +369,12 @@ jobs: cp content/contributors/tenzing.md /tmp/generated-resources/ || true cp data/ga_data.json /tmp/generated-resources/ga_data.json || true + # Copy FReD citation if it exists + if [ -f static/data/fred_citation.txt ]; then + mkdir -p /tmp/generated-resources/static/data + cp static/data/fred_citation.txt /tmp/generated-resources/static/data/fred_citation.txt + fi + # Copy additional generated files mkdir -p /tmp/generated-resources/contributor-analysis cp -r content/contributor-analysis/* /tmp/generated-resources/contributor-analysis/ || true @@ -373,7 +406,7 @@ jobs: pushd "$WORKTREE_DIR" # Ensure target directories exist - mkdir -p content/curated_resources content/contributors data content/contributor-analysis content/publications + mkdir -p content/curated_resources content/contributors data content/contributor-analysis content/publications static/data # Remove old generated resource files (but keep _index.md) find content/curated_resources -type f ! -name '_index.md' -delete 2>/dev/null || true @@ -389,6 +422,9 @@ jobs: if [ -f /tmp/generated-resources/ga_data.json ]; then cp /tmp/generated-resources/ga_data.json data/ga_data.json fi + if [ -f /tmp/generated-resources/static/data/fred_citation.txt ]; then + cp /tmp/generated-resources/static/data/fred_citation.txt static/data/fred_citation.txt + fi if [ -f /tmp/generated-resources/summaries.json ]; then cp /tmp/generated-resources/summaries.json data/summaries.json fi @@ -417,6 +453,7 @@ jobs: git add content/curated_resources/ 2>/dev/null || true git add content/contributors/tenzing.md 2>/dev/null || true git add data/ga_data.json 2>/dev/null || true + git add static/data/fred_citation.txt 2>/dev/null || true git add data/summaries.json 2>/dev/null || true git add content/contributor-analysis/ 2>/dev/null || true git add content/publications/citation_chart.webp 2>/dev/null || true diff --git a/layouts/shortcodes/cite-us.html b/layouts/shortcodes/cite-us.html index 7eb0568470a..3b210a0ea8a 100644 --- a/layouts/shortcodes/cite-us.html +++ b/layouts/shortcodes/cite-us.html @@ -7,6 +7,17 @@ {{ end }} +{{/* Load FReD citation from text file or use fallback */}} +{{ $fredCitation := "" }} +{{ $citationFile := "static/data/fred_citation.txt" }} +{{ if fileExists $citationFile }} + {{ $fredCitation = readFile $citationFile }} + {{/* Remove leading/trailing whitespace manually */}} + {{ $fredCitation = trim $fredCitation " \n\r\t" }} +{{ else }} +{{ $fredCitation = print "Wallrich, L.*, & Röseler, L.*, Hartmann, H., Ashcroft-Jones, S., Doetsch, C., Kaiser, L., Schüller, S. M., Aldoh, A., Behbood, H., Elsherif, M. M., Klett, N., Krapp, J., Liu, M., Pavlović, Z., Pennington, C. R., Schütz, A., Seida, C., Siziva, K., Skvortsova, A., Aczel, B., Adelina, N., Agostini, V., Al-Hoorie, A. H., Alarie, S., Albayrak-Aydemir, N., Alzahawi, S., Anvari, F., Arriaga, P., Baker, B. J., Barth, C. L., Bauer, D. J., Becker, R., Beitner, J., Belaus, A., Bhatt, H., Bhogal, J., Boyce, V., Breemer, L., Brick, C., Brohmer, H., Brummernhenrich, B., Budd, E., Butler, A., Casula, A., Chandrashekar, S. P., Chen, S., Chung, K. L., Cockcroft, J. P., Crowe, P., Cummins, J., Daniel, A., Deane, O., Deressa, T. K., Dienlin, T., Diveica, V., Draguns, A., Dumbalska, T., Efendic, E., El Halabi, M., Enright, S., Evans, T. R., Exner, A., Farrar, B. G., Feldman, G., Fillon, A., Floyd, J., Fontana Vieira, F., Frese, J., Förster, N., Gattie, M. C., Gemmecke, C., Genschow, O., Giannouli, V., Gjoneska, B., Gnambs, T., Gourdon-Kanhukamwe, A., Graham, C. J., Greshake Tzovaras, B., Guay, S., Hausenloy, J., Haviva, C., Henderson, E. L., Herderich, A., Hilbert, L., Holgado, D., Hussey, I., Höfer, L., Ilchovska, Z. G., Imada, H., Imwene, P., Izydorczak, K., Jaubert, S., Jeftić, A., Kalandadze, T., Kamermans, K., Karhulahti, V., Kasseckert, L., Kastrinogiannis, A., Klingelhöfer-Jens, M., Kocalar, H. E., Koppel, L., Koppold, A., Korbmacher, M., Kujawa, Z., Kulke, L., Kumar, P., Kuper, N., LaPlume, A. A., Lach, R., Lecuona, O., Lee, J., Leech, G., Leksina, E., Lin, C., Liu, Y., Lohkamp, F., Lou, N. M., Lynott, D., Mackinnon, S., Maier, M., Maiya, S., Makel, M. C., Manrique-Castano, D., Manríquez-Robles, D., Mathes, L., McSharry, D., Meidenbauer, K. L., Meier, M., Micheli, L., Miller, T., Montefinese, M., Moreau, D., Moser, N., Mrkva, K., Murphy, J., Muthu, J., Narkar, N., Nemcova, M., Nádvorník, J., O'Mahoney, R., O'Mahony, A., Oberholzer, Y., Oomen, D., Osano, M., Otstavnov, N., Packheiser, J., Pandey, S., Panton, H., Papenmeier, F., Parsons, S., Paruzel-Czachura, M., Pavlov, Y. G., Pittelkow, M., Plomp, W., Plonski, P. E., Pravednikov, A., Pronizius, E., Pua, A., Pypno-Blajda, K., Rausch, M., Raza, H., Reason, R., Rebholz, T. R., Resulbegoviq, H., Richert, E., Ross, R. M., Russo, S., Röer, J. P., Sandkühler, J. F., Schmidt, K., Sempere, N., Sobolak, R., Sperl, M. F., Stevens, J. R., Stogianni, M., Szekely, R., Tan, A. W., Thürmer, J. L., Tiulpakova, M., Tomczak, J., Tołopiło, A., Tunca, B., Vanpaemel, W., Vaughn, L. A., Verheyen, S., Vineyard, G. H., Weber, L., Weinberg, A., Wingen, S., Wolska, J., Yeung, S. K., Younssi, M., Zaneva, M., Zimmermann, D., Azevedo, F. (2026). FORRT Library of Replication Attempts (FLoRA) [Data set]. OSF. doi.org/10.17605/OSF.IO/9R62X
* These authors contributed equally to this work." }} +{{ end }} +

If you want to cite FORRT, in general, cite:

@@ -46,17 +57,18 @@

If you want to cite FORRT, in general, cite:

+
-

If you want to cite FReD, cite:

+

Citational Justice Toolkit:

- Röseler, L., Kaiser, L., Doetsch, C., Klett, N., Seida, C., Schütz, A., Aczel, B., Adelina, N., Agostini, - V., Alarie, S., ... , Zaneva, M., & Zhang, Y. (2024). The Replication Database: Documenting the - Replicability of Psychological Science. Journal of Open Psychology Data, 12: 8, pp. 1–23. - DOI: https://doi.org/10.5334/jopd.101 + Sauvé, S. A., Middleton, S. L., Gellersen, H., & Azevedo, F. (2025, July 31). In Pursuit of Citational + Justice: A Toolkit for Equitable Scholarship. https://doi.org/10.31222/osf.io/qjecy_v2 + DOI: + https://doi.org/10.31222/osf.io/qjecy_v2
-
-

Citational Justice Toolkit:

+

If you want to cite FReD, cite:

- Sauvé, S. A., Middleton, S. L., Gellersen, H., & Azevedo, F. (2025, July 31). In Pursuit of Citational - Justice: A Toolkit for Equitable Scholarship. https://doi.org/10.31222/osf.io/qjecy_v2 - DOI: - https://doi.org/10.31222/osf.io/qjecy_v2 + {{ $fredCitation | safeHTML }}
-