ansible / team-devtools

Shared practices, workflows and decisions impacting Ansible devtools projects

Home Page:https://ansible.readthedocs.io/projects/team-devtools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

` .github/release-drafter.yml` not included in `push` workflow

adehad opened this issue · comments

This causes the release-drafter workflow to fail if the repo doesn't have the release-drafter.yml config associated with it already.

e.g. https://github.com/pycontribs/jira/runs/4345876044?check_suite_focus=true

Perhaps we can add a line to the build config that downloads this repo's one if not present:

jobs:
  update_release_draft:
    runs-on: ubuntu-20.04
    steps:
      - name: Verify template exists if not use our default
        run: test -f .github/release-drafter.yml || curl https://github.com/ansible-community/devtools/blob/main/.github/release-drafter.yml > .github/release-drafter.yml
      # Drafts your next Release notes as Pull Requests are merged into "main"
      - uses: release-drafter/release-drafter@v5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Ah we may need to use the create-dirs option actually, as we don't checkout the current repo:

curl --create-dirs https://github.com/ansible-community/devtools/blob/main/.github/release-drafter.yml --output .github/release-drafter.yml