Skip to content

Commit

Permalink
Remove variables
Browse files Browse the repository at this point in the history
  • Loading branch information
srikrsna-buf committed Jan 25, 2024
1 parent b6f1d5e commit c58027c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
run: |
echo item_id=$(gh api graphql -f query='query ($name: String!, $owner: String!, $number: Int!) {
repository(name: $name, owner: $owner) {
echo item_id=$(gh api graphql -f query='query {
repository(name: "${{ github.event.repository.name }}", owner: "${{ github.event.repository.owner.name }}") {
name
issue(number: $number) {
issue(number: ${{ github.event.issue.number }}) {
projectItems(first: 100) {
nodes {
id
Expand All @@ -54,7 +54,7 @@ jobs:
}
}
}
}' -f name='${{ github.event.repository.name }}' -f owner='${{ github.event.repository.owner }}' -f number=${{ github.event.issue.number }} | jq -r '.data.repository.issue.projectItems.nodes | .[] | select(.project.number==1 and .fieldValueByName.optionId == "dea0b2c9") | .id') >> $GITHUB_OUTPUT
}' | jq -r '.data.repository.issue.projectItems.nodes | .[] | select(.project.number==1 and .fieldValueByName.optionId == "dea0b2c9") | .id') >> $GITHUB_OUTPUT
- name: "Update status"
if: ${{ steps.get_project_item_id.outputs.item_id != '' }}
env:
Expand Down

0 comments on commit c58027c

Please sign in to comment.