Skip to content

Commit

Permalink
Merge pull request #10044 from department-of-veterans-affairs/chanel-…
Browse files Browse the repository at this point in the history
…6808-create-system-for-updating-names-on-release-tickets

Automation/6808-chanel-create-system-for-updating-names-on-release-tickets
  • Loading branch information
narin authored Nov 13, 2024
2 parents 77c3e5e + d7c3ae9 commit b523b24
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/release_branch_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- run: echo "VA_DUE_DATE=$(date -d "+6 days" '+%A %b %d, %Y')" >> $GITHUB_ENV
- run: echo "RELEASE_DATE=$(date -d "+13 days" '+%A %b %d, %Y')" >> $GITHUB_ENV
- uses: actions/checkout@v3
- run: echo "${{ secrets.GITHUB_TOKEN }}" >> token.txt
- run: echo "${{ secrets.GH_ACTIONS_PAT }}" > token.txt
- run: gh auth login --with-token < token.txt
- run: |
sev1=$(gh issue list -l "sev-1" --jq 'map("|#\(.number)|\(.title)|") | join("\n") ' --json number,title)
Expand All @@ -32,7 +32,8 @@ jobs:
echo 'TABLE<<EOF' >> $GITHUB_ENV
echo "${table}" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- uses: JasonEtco/create-an-issue@v2
- name: Create Release Ticket
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/ISSUE_TEMPLATE/release_ticket.md
env:
Expand All @@ -43,7 +44,17 @@ jobs:
releaseDate: ${{ env.RELEASE_DATE }}
issues: ${{ env.TABLE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: create-issue
id: create_issue
- name: Assign Users to Release Ticket
if: ${{ success() }}
run: |
# Fetch GitHub Group Members
TEAM_MEMBERS=$(gh api orgs/department-of-veterans-affairs/teams/flagship-mobile-release-approvers/members --jq 'map(.login) | join(",")')
ASSIGNEES=$(echo $TEAM_MEMBERS | paste -sd "," -)
ISSUE_NUMBER=${{ steps.create_issue.outputs.number }}
gh issue edit $ISSUE_NUMBER --add-assignee $ASSIGNEES
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PAT }}
create_testrail_milestone:
uses: department-of-veterans-affairs/va-mobile-app/.github/workflows/create_testrail_milestone.yml@develop
needs: release_ticket
Expand Down

0 comments on commit b523b24

Please sign in to comment.