jiachenli011 is submitting their 🏠 home 💪 work for 🤖 bot 🎓 grading on GitHub Actions 🚀 #3
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: GitHub Actions Trigger Queue for Auto-Grading | |
run-name: ${{ github.actor }} is submitting their 🏠 home 💪 work for 🤖 bot 🎓 grading on GitHub Actions 🚀 | |
on: [push] | |
jobs: | |
Submit-For-Autograding: | |
runs-on: ubuntu-latest | |
env: | |
AZURE_SERVICEBUS_CONNECTION_STRING: ${{ secrets.AZURE_SERVICEBUS_CONNECTION_STRING }} | |
AZURE_SERVICEBUS_QUEUE: ${{ vars.AZURE_SERVICEBUS_QUEUE }} | |
steps: | |
- run: echo "DT=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV | |
- run: echo "🗓️ The job was triggerd on ${{ env.DT }}." | |
- 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 }}." | |
- run: echo "🪈 The queue name is ${{ env.AZURE_SERVICEBUS_QUEUE }}." | |
- run: pip install azure-servicebus-cli | |
- run: azsb send --queue ${{ env.AZURE_SERVICEBUS_QUEUE }} --message '{"timestamp":"${{ env.DT }}","cmd":"graderbot","repo_url":"${{ github.repository }}"}' | |
- run: echo "🍏 Message sent to the grading bot! This job's status is ${{ job.status }}." | |