Skip to content

Bump drush/drush from 13.6.0 to 13.6.1 #1505

Bump drush/drush from 13.6.0 to 13.6.1

Bump drush/drush from 13.6.0 to 13.6.1 #1505

Workflow file for this run

name: Release Drafter
on:
push:
branches:
- master
- 1.x
- 2.x
pull_request_target:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
require_label:
runs-on: ubuntu-latest
permissions:
pull-requests: read
if: github.event_name == 'pull_request_target'
steps:
- name: Check for labels on PR
run: gh pr view --json labels https://github.com/$GITHUB_REPOSITORY/pull/$GITHUB_PR | jq -r '.labels[0].name' | grep -q 'null' && echo "You must apply at least one label" && exit 1 || exit 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR: ${{ github.event.pull_request.number }}
update_release_draft:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: Determine Release Drafter Options
id: drafter_options
shell: bash
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
TARGET_BRANCH="${{ github.ref_name }}"
elif [[ "${{ github.event_name }}" == "pull_request_target" ]]; then
TARGET_BRANCH="${{ github.base_ref }}"
else
echo "::error::Unsupported event type: ${{ github.event_name }}. Cannot determine target branch."
exit 1
fi
echo "Event name: ${{ github.event_name }}"
echo "Determined target branch: $TARGET_BRANCH for Release Drafter options"
if [[ "$TARGET_BRANCH" == "master" ]]; then
CONFIG_NAME="release-drafter.yml"
elif [[ "$TARGET_BRANCH" == "1.x" ]] || [[ "$TARGET_BRANCH" == "2.x" ]]; then
CONFIG_NAME="release-drafter-$TARGET_BRANCH.yml"
else
CONFIG_NAME="release-drafter.yml" # Default
echo "::warning::Unexpected target branch '$TARGET_BRANCH' for release drafting. Defaulting to '$CONFIG_NAME'."
fi
echo "Using config file: $CONFIG_NAME"
echo "config_name=$CONFIG_NAME" >> $GITHUB_OUTPUT
- uses: release-drafter/release-drafter@v6
with:
config-name: ${{ steps.drafter_options.outputs.config_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}