Commit eef9cc9
authored
Tagging workflow included (#57)
Adding another workflow as part of
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/3739
This workflow automatically updates the tags based on merges to the
respective branches
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Changes
Added a new GitHub Actions workflow (`.github/workflows/tag.yml`) that
automatically updates environment tags when pull requests are merged.
**Workflow Details:**
- **Trigger:** Pull request closure events on `develop`, `staging`, and
`production` branches (only executes when PR is merged)
- **Tag Mapping:** Maps base branch to environment tag:
- `develop` → `dev`
- `staging` → `stage`
- `production` → `prod`
- **Execution:** Force-updates the git tag locally and pushes it to the
remote repository with the `--force` flag
- **Permissions:** Requires `contents: write` to push tags
The workflow enables automated environment tagging aligned with
branch-based deployments, ensuring consistent tag versions across
environments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments