Skip to content

Commit

Permalink
Remove debugging steps
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Sep 29, 2024
1 parent 637e653 commit 831bf96
Showing 1 changed file with 1 addition and 46 deletions.
47 changes: 1 addition & 46 deletions .github/workflows/milestones.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,14 @@
name: Assign Milestone

on:
# pull_request:
pull_request_target:
types: [closed]

jobs:
assign-milestone:
runs-on: ubuntu-latest
if: github.event.pull_request.merged || true
if: github.event.pull_request.merged
steps:
- run: echo "pull_request is merged"
if: github.event.pull_request.merged
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Dump runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"
- name: Dump strategy context
env:
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
run: echo "$STRATEGY_CONTEXT"
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJson(matrix) }}
run: echo "$MATRIX_CONTEXT"
- run: gh pr view ${{ github.event.pull_request.html_url }}
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- run: gh pr view ${{ github.event.pull_request.html_url }} --json milestone
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- run: |
gh pr view ${{ github.event.pull_request.html_url }} --json milestone \
--jq .milestone.title
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
# Retreiving the current milestoone from API instead of github context,
# so up-to-date information is used when running after being queued or for reruns
# Otherwise, the information should be available using
Expand All @@ -65,10 +24,6 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- run: echo "Has milestone"
if: ${{ github.event.pull_request.milestone.title }}
- run: echo "Does not have a milestone"
if: ${{ !github.event.pull_request.milestone.title }}
- name: PR already has a milestone
run: echo "PR already has a milestone"
if: ${{ steps.current-milestone.outputs.milestone }}
Expand Down

0 comments on commit 831bf96

Please sign in to comment.