📥 Maintenance - Create Cloud Development Environment Base Issue #5
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: 📥 Maintenance - Create Cloud Development Environment Base Issue | |
on: | |
schedule: | |
- cron: "0 8 1 * *" # UTC time: “At 08:00 on first day-of-month” | |
permissions: {} | |
jobs: | |
create-maintenance-issue: | |
name: Create Maintenance Issue | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Create Maintenance Issue | |
id: create_maintenance_issue | |
run: | | |
if [[ "${CLOSE_PREVIOUS}" == true ]]; then | |
previous_issue_number=$(gh issue list \ | |
--label "$LABELS" \ | |
--json number \ | |
--jq '.[0].number') | |
if [[ -n $previous_issue_number ]]; then | |
gh issue close "$previous_issue_number" | |
gh issue unpin "$previous_issue_number" | |
fi | |
fi | |
new_issue_url=$(gh issue create \ | |
--title "$TITLE" \ | |
--assignee "$ASSIGNEES" \ | |
--label "$LABELS" \ | |
--body "$BODY") | |
if [[ $PINNED == true ]]; then | |
gh issue pin "$new_issue_url" | |
fi | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} | |
TITLE: 📥 Maintenance - Analytical Platform Cloud Development Environment Base | |
ASSIGNEES: | |
LABELS: maintenance | |
BODY: | | |
> [!CAUTION] | |
> This image underpins many containerised services in the Analytical Platform. | |
### User Story | |
As a… engineer on the Analytical Platform | |
I need/want/expect to… keep Cloud Development Environment Base up to date | |
So that… security / best practice etc | |
### Definition of Done | |
- [ ] Merge any open dependabot Pull Requests in the Analytical Platform Cloud Development Environment Base [repository](https://github.com/ministryofjustice/analytical-platform-cloud-development-environment-base/pulls). | |
- [ ] Update the image as per the instructions in the README. | |
- [ ] Create new [release](https://github.com/ministryofjustice/analytical-platform-cloud-development-environment-base/releases). | |
PINNED: false | |
CLOSE_PREVIOUS: false |