Skip to content

Commit

Permalink
[#67] Use inherited secrets (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan authored Jan 13, 2024
1 parent 6fc5ac9 commit b5c2e69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ jobs:
uses: Oztechan/Global/.github/workflows/reusable-project.yml@develop
with:
project_id: 8
secrets:
MILESTONE: ""
secrets: inherit
11 changes: 5 additions & 6 deletions .github/workflows/reusable-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ on:
project_id:
required: true
type: string
secrets:
MILESTONE:
description: 'Milestone to set for PRs or issues'
required: true

env:
MILESTONE: ${{ secrets.MILESTONE }}

jobs:
ProjectAutomations:
Expand All @@ -26,7 +25,7 @@ jobs:
project_id: ${{ inputs.project_id }}
resource_node_id: ${{ github.event.issue.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ secrets.MILESTONE }}\"}]'
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ MILESTONE }}\"}]'

- name: 'Move Related Issue to "🏗 PR Review"'
if: |
Expand All @@ -53,7 +52,7 @@ jobs:
project_id: ${{ inputs.project_id }}
resource_node_id: ${{ github.event.pull_request.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ secrets.MILESTONE }}\"}]'
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ MILESTONE }}\"}]'

- name: 'Move Related Issue to "🚧 In Progress"'
if: |
Expand Down

0 comments on commit b5c2e69

Please sign in to comment.