Skip to content

build(deps): bump github.com/aws/aws-sdk-go from 1.44.282 to 1.45.9 #852

build(deps): bump github.com/aws/aws-sdk-go from 1.44.282 to 1.45.9

build(deps): bump github.com/aws/aws-sdk-go from 1.44.282 to 1.45.9 #852

name: "Project: Partner Label"
on:
pull_request_target:
types:
- labeled
env:
DESTINATION_COLUMN_ID: 'PC_lAPOAAuecM4AXZPtzgC5Sak'
GH_TOKEN: ${{ secrets.ORGSCOPED_GITHUB_TOKEN }}
jobs:
tag-created:
if: ${{ github.event.label.name == 'partner' }}
runs-on: ubuntu-latest
steps:
- name: AddIssueToPartnerBoard
run: |
PROJCOLUMNS=$(gh api graphql -f query='
query {
repository(name: "${{ github.event.repository.name }}", owner: "${{ github.repository_owner }}") {
pullRequest(number: ${{ github.event.number }}) {
projectCards {
nodes {
column {
name
id
}
}
}
}
}
}')
INPROJECT=$(echo $PROJCOLUMNS | jq '.data.repository.pullRequest.projectCards.nodes[].column | select(.id=="${{ env.DESTINATION_COLUMN_ID }}")')
if [ -z "$INPROJECT" ];
then
gh api graphql -f query='mutation {
addProjectCard(input: {projectColumnId: "${{ env.DESTINATION_COLUMN_ID }}", contentId: "${{ github.event.pull_request.node_id }}"}) {
clientMutationId
}
}'
fi