Skip to content

xiulinyang is testing out GitHub Actions 🚀 #225

xiulinyang is testing out GitHub Actions 🚀

xiulinyang is testing out GitHub Actions 🚀 #225

Workflow file for this run

name: Build AMR Bibliography
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
jobs:
Build-Bib:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Build HTML from CSV
run: |
python tsv2html.py
# Commit and push all changed files. (source: Example 1 of https://joht.github.io/johtizen/build/2022/01/20/github-actions-push-into-repository.html)
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs)
# Only run on main branch push (e.g. after pull request merge).
if: github.event_name == 'push'
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
- run: echo "🍏 This job's status is ${{ job.status }}."