Dummy PR - DO NOT MERGE #2169
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Project Labels | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - labeled | |
| - unlabeled | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| baseline-labels: | |
| name: Baseline labels | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Lack of baseline labels | |
| if: | | |
| !contains(github.event.pull_request.labels.*.name, 'No Baseline Change') && | |
| !contains(github.event.pull_request.labels.*.name, 'Baseline Updates') && | |
| !contains(github.event.pull_request.labels.*.name, 'New Baselines') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Baseline Changes' | |
| value: 'Unknown' | |
| - name: Contradictory labels | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'No Baseline Change') && | |
| (contains(github.event.pull_request.labels.*.name, 'Baseline Updates') || | |
| contains(github.event.pull_request.labels.*.name, 'New Baselines')) | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Baseline Changes' | |
| value: 'Unknown' | |
| - name: Baseline changes labels | |
| if: | | |
| !contains(github.event.pull_request.labels.*.name, 'No Baseline Change') && | |
| ( contains(github.event.pull_request.labels.*.name, 'Baseline Updates') || | |
| contains(github.event.pull_request.labels.*.name, 'New Baselines') ) | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Baseline Changes' | |
| value: 'Yes' | |
| - name: No baseline changes label | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'No Baseline Change') && | |
| !contains(github.event.pull_request.labels.*.name, 'Baseline Updates') && | |
| !contains(github.event.pull_request.labels.*.name, 'New Baselines') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Baseline Changes' | |
| value: 'No' | |
| data-labels: | |
| name: Input data | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Additions to current input-data directory required | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'Adds Input Data') && | |
| !contains(github.event.pull_request.labels.*.name, 'Changes Existing Input Data') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Input Data Req'd" | |
| value: 'Adds' | |
| - name: New input-data directory required | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'Changes Existing Input Data') && | |
| !contains(github.event.pull_request.labels.*.name, 'Adds Input Data') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Input Data Req'd" | |
| value: 'Create New' | |
| - name: No input data changes | |
| if: | | |
| (!contains(github.event.pull_request.labels.*.name, 'Changes Existing Input Data')) && | |
| (!contains(github.event.pull_request.labels.*.name, 'Adds Input Data')) | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Input Data Req'd" | |
| value: 'None' | |
| - name: Contradictory labels | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'Adds Input Data') && | |
| contains(github.event.pull_request.labels.*.name, 'Changes Existing Input Data') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Input Data Req'd" | |
| value: 'Unknown' | |
| priority-labels: | |
| name: Priority | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Read Priority field | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| id: priority_field | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: read | |
| field: Priority | |
| - name: Normal Priority | |
| if: | | |
| !contains(github.event.pull_request.labels.*.name, 'Priority: Critical') && | |
| !contains(github.event.pull_request.labels.*.name, 'Priority: High') && | |
| !contains(steps.priority_field.outputs.field_read_value, 'Combine') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Priority' | |
| value: 'Normal' | |
| - name: Critical priority | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'Priority: Critical') && | |
| !contains(steps.priority_field.outputs.field_read_value, 'Combine') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Priority' | |
| value: 'Critical' | |
| - name: High Priority | |
| if: | | |
| (contains(github.event.pull_request.labels.*.name, 'Priority: High')) && | |
| !contains(steps.priority_field.outputs.field_read_value, 'Combine') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Priority' | |
| value: 'High' | |
| - name: Unknown Priority | |
| if: | | |
| contains(github.event.pull_request.labels.*.name, 'Priority: Critical') && | |
| contains(github.event.pull_request.labels.*.name, 'Priority: High') && | |
| !contains(steps.priority_field.outputs.field_read_value, 'Combine') | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: 'Priority' | |
| value: 'Unknown' | |
| subcomponent-labels: | |
| name: Subcomponents involved | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| env: | |
| SUBCOMPONENTS: '' | |
| steps: | |
| - name: UFSATM | |
| if: contains(github.event.pull_request.labels.*.name, 'UFSATM') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} UFSATM" >> $GITHUB_ENV | |
| - name: CCPP | |
| if: contains(github.event.pull_request.labels.*.name, 'CCPP') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CCPP" >> $GITHUB_ENV | |
| - name: atmos_cubed_sphere | |
| if: contains(github.event.pull_request.labels.*.name, 'A3S') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} A3S" >> $GITHUB_ENV | |
| - name: MPAS | |
| if: contains(github.event.pull_request.labels.*.name, 'MPAS') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} MPAS" >> $GITHUB_ENV | |
| - name: UPP | |
| if: contains(github.event.pull_request.labels.*.name, 'UPP') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} UPP" >> $GITHUB_ENV | |
| - name: stochastic_physics | |
| if: contains(github.event.pull_request.labels.*.name, 'SP') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} SP" >> $GITHUB_ENV | |
| - name: AQM | |
| if: contains(github.event.pull_request.labels.*.name, 'AQM') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} AQM" >> $GITHUB_ENV | |
| - name: CMEPS | |
| if: contains(github.event.pull_request.labels.*.name, 'CMEPS') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CMEPS" >> $GITHUB_ENV | |
| - name: CDEPS | |
| if: contains(github.event.pull_request.labels.*.name, 'CDEPS') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CDEPS" >> $GITHUB_ENV | |
| - name: CICE | |
| if: contains(github.event.pull_request.labels.*.name, 'CICE') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CICE" >> $GITHUB_ENV | |
| - name: CECE | |
| if: contains(github.event.pull_request.labels.*.name, 'CECE') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CECE" >> $GITHUB_ENV | |
| - name: CATChem | |
| if: contains(github.event.pull_request.labels.*.name, 'CATChem') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CATChem" >> $GITHUB_ENV | |
| - name: GOCART | |
| if: contains(github.event.pull_request.labels.*.name, 'GOC') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} GOC" >> $GITHUB_ENV | |
| - name: MOM6 | |
| if: contains(github.event.pull_request.labels.*.name, 'MOM') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} MOM" >> $GITHUB_ENV | |
| - name: NOAHMP | |
| if: contains(github.event.pull_request.labels.*.name, 'NMP') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} NMP" >> $GITHUB_ENV | |
| - name: WW3 | |
| if: contains(github.event.pull_request.labels.*.name, 'WW3') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} WW3" >> $GITHUB_ENV | |
| - name: LM4 | |
| if: contains(github.event.pull_request.labels.*.name, 'LM4') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} LM4" >> $GITHUB_ENV | |
| - name: FB | |
| if: contains(github.event.pull_request.labels.*.name, 'FB') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} FB" >> $GITHUB_ENV | |
| - name: CCPP-sub | |
| if: contains(github.event.pull_request.labels.*.name, 'CCPP-sub') | |
| run: echo "SUBCOMPONENTS=${SUBCOMPONENTS} CCPP-sub" >> $GITHUB_ENV | |
| - name: Update subcomponents text | |
| if: ${{ env.SUBCOMPONENTS != '' }} | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Subcomponent PRs" | |
| value: ${{ env.SUBCOMPONENTS }} | |
| - name: WM only | |
| if: ${{ env.SUBCOMPONENTS == '' }} | |
| uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 #v4 | |
| with: | |
| github_token: ${{ secrets.PR_PROJECT_TOKEN }} | |
| organization: ufs-community | |
| project_number: 70 | |
| content_id: ${{ github.event.pull_request.node_id }} | |
| operation: update | |
| field: "Subcomponent PRs" | |
| value: 'WM only' |