diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index ee30b26..fa59075 100755 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -58,6 +58,8 @@ jobs: labels: | Last run number=${{ github.run_number }} Last commit=${{ github.sha }} + Branch=${{ github.ref_name}} build-args: | LAST_RUN_NUMBER=${{ github.run_number }} LAST_COMMIT=${{ github.sha }} + BRANCH=${{ github.ref_name}} diff --git a/sausage_bot/__main__.py b/sausage_bot/__main__.py index 499a9e2..a1cfb4a 100755 --- a/sausage_bot/__main__.py +++ b/sausage_bot/__main__.py @@ -185,8 +185,11 @@ async def get_version(interaction: discord.Interaction): await interaction.response.defer(ephemeral=True) version_in = file_io.read_json(envs.version_file) await interaction.followup.send( - 'Last run number: {}\nLast commit: {}'.format( - version_in['LAST_RUN_NUMBER'], version_in['LAST_COMMIT'] + 'Running the `{}` branch:\nLast run number: {}\n' + 'Last commit: {}'.format( + version_in['BRANCH'], + version_in['LAST_RUN_NUMBER'], + version_in['LAST_COMMIT'] ), ephemeral=True )