adafruit / ci-arduino

A script that will install all of the common dependencies for testing Arduino library builds using Github Actions
MIT License
115 stars 73 forks source link

Format documentation commit in GitHub actions #91

Closed edgar-bonet closed 3 years ago

edgar-bonet commented 3 years ago

This pull request addresses issue #74 (doxy_gen_and_deploy.sh assumes it run on Travis). The commit message created by the script now has relevant information both when running on Travis and when running on GitHub actions.

I tested the change on a fork of RTClib. The commit generated by Travis looks like this:

Author: Doxygen CI <ci-arduino@invalid>
Date:   Tue Dec 29 22:24:39 2020 +0000

    Deploy docs to GitHub Pages from commit 6b806f2db3

    Commit: 6b806f2db31aa01813a9194e8dcd33bb03e63a1a
    Travis build: 4

The commit generated by GitHub actions:

Author: Doxygen CI <ci-arduino@invalid>
Date:   Tue Dec 29 22:14:38 2020 +0000

    Deploy docs to GitHub Pages from commit 6b806f2db3

    Commit: 6b806f2db31aa01813a9194e8dcd33bb03e63a1a
    GitHub Actions run: 451559241