Simulation-2d docker Image #5
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: Warn to Build and Push Dockerfile manually if PR is merged into main | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
warn-to-build-and-push: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' | |
steps: | |
- name: Warn to Build and Push Dockerfile manually | |
run: | | |
function comment_on_pr() { | |
local body="$1" | |
gh pr comment "${{ github.event.number }}" --repo "${{ github.repository }}" --body "$body" | |
} | |
comment_on_pr "This PR was merged into \`main\`. Please [build and push](https://github.com/robocin/containers/actions/) a 'latest' Docker image, if applicable." | |
env: | |
GH_TOKEN: ${{ github.token }} |