Skip to content

Commit

Permalink
[#73] Use inherited secrets (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Jan 20, 2024
1 parent 19a314a commit ffc3325
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ jobs:
uses: Oztechan/Global/.github/workflows/reusable-project.yml@develop
with:
project_id: 8
milestone: ${{ needs.milestone.outputs.value }}
secrets: inherit
7 changes: 2 additions & 5 deletions .github/workflows/reusable-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
project_id:
required: true
type: string
milestone:
required: true
type: string

jobs:
ProjectAutomations:
Expand All @@ -25,7 +22,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\": \"${{ inputs.milestone }}\"}]'
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ secrets.MILESTONE }}\"}]'

- name: 'Move Related Issue to "🏗 PR Review"'
if: |
Expand All @@ -52,7 +49,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\": \"${{ inputs.milestone }}\"}]'
custom_field_values: '[{\"name\": \"Milestone\",\"type\": \"text\",\"value\": \"${{ secrets.MILESTONE }}\"}]'

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

0 comments on commit ffc3325

Please sign in to comment.