Commit 6d48066
authored
fix: Correct channel deletion logic in Firebase workflow (#74)
- **Improved Logic**:
- Updated the `delete-firebase-hosting-channel.yml` workflow to dynamically resolve the full channel name based on the pull request number.
- Uses `grep` and `cut` to extract the channel name from the `hosting:channel:list` command.
- Ensures robust and accurate deletion of the associated Firebase hosting channel.
- **Enhancements**:
- Added logic to safely pass the resolved channel name to the `firebase hosting:channel:delete` command using `xargs`.
- Maintains backward compatibility with the existing environment variables and configurations.
- **Objective**:
- Automate cleanup of Firebase hosting channels linked to pull requests for better resource management.1 parent 182f857 commit 6d48066
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
0 commit comments