From a26d81ea47955e809eec5b690bdcdf1bccd18df5 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 3 Dec 2024 14:24:52 -0700 Subject: [PATCH] clean up names --- .github/actions/determine_workflow_config/action.yml | 12 ++++++------ .github/actions/determine_workflow_context/README.md | 12 ++++++------ .../actions/determine_workflow_context/action.yml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/actions/determine_workflow_config/action.yml b/.github/actions/determine_workflow_config/action.yml index 21ee2c9100..8a11653de9 100644 --- a/.github/actions/determine_workflow_config/action.yml +++ b/.github/actions/determine_workflow_config/action.yml @@ -42,7 +42,7 @@ outputs: runs: using: 'composite' steps: - - id: determine-workflow-context + - id: workflow-context uses: ./.github/actions/determine_workflow_context - id: determine_workflow_config @@ -55,15 +55,15 @@ runs: echo "link-azle=${{ inputs.link-azle-dispatch-input-value }}" >> $GITHUB_OUTPUT echo "fuzz=${{ inputs.fuzz-dispatch-input-value }}" >> $GITHUB_OUTPUT else - EXCLUDE_SLOW=${{ steps.determine-workflow-context.outputs.is_feature_branch_draft_pr == 'true' }} - EXCLUDE_UNSTABLE=${{ steps.determine-workflow-context.outputs.is_feature_branch_draft_pr == 'true' || steps.determine-workflow-context.outputs.is_feature_branch_pr == 'true' }} - EXCLUDE_RELEASE_ONLY=${{ steps.determine-workflow-context.outputs.is_feature_branch_draft_pr == 'true' || steps.determine-workflow-context.outputs.is_feature_branch_pr == 'true' || steps.determine-workflow-context.outputs.is_main_branch_push == 'true' }} + EXCLUDE_SLOW=${{ steps.workflow-context.outputs.is_feature_branch_draft_pr == 'true' }} + EXCLUDE_UNSTABLE=${{ steps.workflow-context.outputs.is_feature_branch_draft_pr == 'true' || steps.workflow-context.outputs.is_feature_branch_pr == 'true' }} + EXCLUDE_RELEASE_ONLY=${{ steps.workflow-context.outputs.is_feature_branch_draft_pr == 'true' || steps.workflow-context.outputs.is_feature_branch_pr == 'true' || steps.workflow-context.outputs.is_main_branch_push == 'true' }} echo "exclude-slow=$EXCLUDE_SLOW" >> $GITHUB_OUTPUT echo "exclude-unstable=$EXCLUDE_UNSTABLE" >> $GITHUB_OUTPUT echo "exclude-release-only=$EXCLUDE_RELEASE_ONLY" >> $GITHUB_OUTPUT - if [[ "${{ steps.determine-workflow-context.outputs.is_main_branch_push_from_release_merge }}" == "true" || \ - "${{ steps.determine-workflow-context.outputs.is_release_branch_pr }}" == "true" ]]; then + if [[ "${{ steps.workflow-context.outputs.is_main_branch_push_from_release_merge }}" == "true" || \ + "${{ steps.workflow-context.outputs.is_release_branch_pr }}" == "true" ]]; then echo "link-azle=false" >> $GITHUB_OUTPUT else echo "link-azle=true" >> $GITHUB_OUTPUT diff --git a/.github/actions/determine_workflow_context/README.md b/.github/actions/determine_workflow_context/README.md index 9b34723099..8bb68561f6 100644 --- a/.github/actions/determine_workflow_context/README.md +++ b/.github/actions/determine_workflow_context/README.md @@ -4,14 +4,14 @@ steps: - uses: actions/checkout@v4 - - id: determine-workflow-context + - id: workflow-context uses: ./.github/actions/determine_workflow_context - name: Use run conditions run: | - echo "Is main branch push: ${{ steps.determine-workflow-context.outputs.is_main_branch_push }}" - echo "Is main branch merge from release: ${{ steps.determine-workflow-context.outputs.is_main_branch_merge_from_release_push }}" - echo "Is release branch PR: ${{ steps.determine-workflow-context.outputs.is_release_branch_pr }}" - echo "Is feature branch PR: ${{ steps.determine-workflow-context.outputs.is_feature_branch_pr }}" - echo "Is feature branch draft PR: ${{ steps.determine-workflow-context.outputs.is_feature_branch_draft_pr }}" + echo "Is main branch push: ${{ steps.workflow-context.outputs.is_main_branch_push }}" + echo "Is main branch merge from release: ${{ steps.workflow-context.outputs.is_main_branch_merge_from_release_push }}" + echo "Is release branch PR: ${{ steps.workflow-context.outputs.is_release_branch_pr }}" + echo "Is feature branch PR: ${{ steps.workflow-context.outputs.is_feature_branch_pr }}" + echo "Is feature branch draft PR: ${{ steps.workflow-context.outputs.is_feature_branch_draft_pr }}" ``` diff --git a/.github/actions/determine_workflow_context/action.yml b/.github/actions/determine_workflow_context/action.yml index 79b9d74698..aceb05a6ad 100644 --- a/.github/actions/determine_workflow_context/action.yml +++ b/.github/actions/determine_workflow_context/action.yml @@ -3,23 +3,23 @@ description: 'Determines the workflow context based on the current GitHub contex outputs: is_main_branch_push: description: 'True if this is a push to the main branch (excluding merges from release branches)' - value: ${{ steps.determine-workflow-context.outputs.is_main_branch_push }} + value: ${{ steps.workflow-context.outputs.is_main_branch_push }} is_main_branch_push_from_release_merge: description: 'True if this is a push to the main branch from a release branch merge' - value: ${{ steps.determine-workflow-context.outputs.is_main_branch_push_from_release_merge }} + value: ${{ steps.workflow-context.outputs.is_main_branch_push_from_release_merge }} is_release_branch_pr: description: 'True if this is a pull request from a release branch' - value: ${{ steps.determine-workflow-context.outputs.is_release_branch_pr }} + value: ${{ steps.workflow-context.outputs.is_release_branch_pr }} is_feature_branch_pr: description: 'True if this is a pull request from a feature branch (non-draft)' - value: ${{ steps.determine-workflow-context.outputs.is_feature_branch_pr }} + value: ${{ steps.workflow-context.outputs.is_feature_branch_pr }} is_feature_branch_draft_pr: description: 'True if this is a draft pull request from a feature branch' - value: ${{ steps.determine-workflow-context.outputs.is_feature_branch_draft_pr }} + value: ${{ steps.workflow-context.outputs.is_feature_branch_draft_pr }} runs: using: 'composite' steps: - - id: determine-workflow-context + - id: workflow-context run: | # Define conditions using shell variables AZLE_IS_MAIN_BRANCH_PUSH=${{ github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'demergent-labs/release--') }}