fixed job add #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatically Add Contributors | |
run-name: ${{ github.actor }} is updating TinyML book contributors | |
on: | |
push: | |
branches: | |
auto_contributor | |
jobs: | |
update-contributors: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrieving contributors for commit ${{ github.sha }} | |
- run: | | |
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
echo "🔎 Getting all contributors from the ${{ github.ref }} branch." | |
PUSHED_CONTRIBUTORS=$(git shortlog -sne --no-merges ${{ github.event.before }}..${{ github.sha }}) | |
echo "Saving contributors to CONTRIBUTORS_TEMP.txt" | |
echo "$PUSHED_CONTRIBUTORS" > CONTRIBUTORS_TEMP.txt |