Skip to content

Commit

Permalink
#0 | Fix version name of add-to-project
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayvenu committed Jun 16, 2023
1 parent 896571a commit feb86a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@0.5.0
- uses: actions/add-to-project@v0.5.0
with:
# You can target a project in a different organization
# to the issue
project-url: https://github.com/orgs/avniproject/projects/2/
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
labelName:=
labelName:= "On+Hold"
githubAPI:= https://api.github.com/repos/avniproject
color:= $(if $(color),$(color),1d76db)

label = \
curl -X POST $(githubAPI)/$(1)/labels \
-H "Authorization: token $(token)" \
-d '{"name":"$(labelName)","color":"$(color)"}' \
curl -X DELETE $(githubAPI)/$(1)/labels/$(labelName) \
-H "Authorization: token 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" \

create_release_label:
ifndef labelName
@echo "Please provide label name"
exit 1
else
make create_label token=$(GITHUB_TOKEN) labelName=$(labelName) color=$(color)
make create_label token=$(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) labelName=$(labelName) color=$(color)
endif

create_label:
delete_label:
$(call label,avni-product)
$(call label,avni-client)
$(call label,avni-server)
Expand Down

0 comments on commit feb86a4

Please sign in to comment.