diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index f1c1236..d9cc0e3 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -17,5 +17,4 @@ jobs: uses: Oztechan/Global/.github/workflows/reusable-project.yml@develop with: project_id: 8 - secrets: - MILESTONE: "" + secrets: inherit diff --git a/.github/workflows/reusable-project.yml b/.github/workflows/reusable-project.yml index 76c20fd..a539281 100644 --- a/.github/workflows/reusable-project.yml +++ b/.github/workflows/reusable-project.yml @@ -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: @@ -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: | @@ -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: |