Skip to content

Only one field is created successfully at the same time the named DB in datastore mode is created #469

Only one field is created successfully at the same time the named DB in datastore mode is created

Only one field is created successfully at the same time the named DB in datastore mode is created #469

name: Issue Opened Self-Service Labeler
on:
issues:
types: [opened]
jobs:
add-labels:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout magic modules
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
repository: GoogleCloudPlatform/magic-modules
ref: main
path: magic-modules
- name: Setup go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version: '>=1.19.0'
- name: Pick labels
id: pick_labels
env:
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
cd magic-modules/tools/issue-labeler
echo "labels=$(go run .)" >> $GITHUB_OUTPUT
- name: Apply labels
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
if: ${{ steps.pick_labels.outputs.labels != '' }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ${{ steps.pick_labels.outputs.labels }}
})