• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MITLibraries / cf-lambda-custom-domain / 7673574462
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/pre-commit-3.7.0
DEFAULT BRANCH: main
Ran 26 Jan 2024 09:26PM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jan 2024 09:12PM UTC coverage: 100.0%. Remained the same
7673574462

push

github

cabutlermit
Fix Production Deploy Workflow

Why these changes are being introduced:
The prod-cf-deploy-lambda.yml workflow did not work correctly on the
first tagged release. Turns out that I had not fully understood what the
GitHub context looked like and the `if:` statement for the job was
incorrect. This addresses that problem.

The GitHub Actions Context is documented at
https://docs.github.com/en/actions/learn-github-actions/contexts. Some
testing in a different repo revealed that there is a key/value pair
that tracks the branch on which the release was tagged:
github.event.release.target_commitish

Later, I discovered that someone on Stack Overflow found this three
years ago:
https://stackoverflow.com/questions/63468238/how-to-get-target-branch-in-github-actions-on-release

Which, after further digging, I discovered was clearly documented in
the GitHub REST API documentation here:
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28

How this addresses that need:
* Correct the `if:` test at the start of the job to correctly identify
if the trigger is a release on `main` or if it's a workflow_dispatch
from the GitHub web UI.

Side effects of this change:
None.

22 of 22 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7673574462.1 26 Jan 2024 09:26PM UTC 0
100.0
GitHub Action Run
Source Files on build 7673574462
Detailed source file information is not available for this build.
  • Back to Repo
  • f28f2e26 on github
  • Prev Build on main (#7647158090)
  • Next Build on prod-deploy-workflow (#8209468697)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc