django-ansible-base requirements update #63
This file contains 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: django-ansible-base requirements update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * *' # once an day @ 6 AM | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dab-pin-newest: | |
if: (github.repository_owner == 'ansible' && endsWith(github.repository, 'awx')) || github.event_name != 'schedule' | |
runs-on: ubuntu-latest | |
steps: | |
- id: dab-release | |
name: Get current django-ansible-base release version | |
uses: pozetroninc/github-action-get-latest-release@2a61c339ea7ef0a336d1daa35ef0cb1418e7676c # v0.8.0 | |
with: | |
owner: ansible | |
repo: django-ansible-base | |
excludes: prerelease, draft | |
- name: Check out respository code | |
uses: actions/checkout@v4 | |
- id: dab-pinned | |
name: Get current django-ansible-base pinned version | |
run: | |
echo "version=$(requirements/django-ansible-base-pinned-version.sh)" >> "$GITHUB_OUTPUT" | |
- name: Update django-ansible-base pinned version to upstream release | |
run: | |
requirements/django-ansible-base-pinned-version.sh -s ${{ steps.dab-release.outputs.release }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 | |
with: | |
base: devel | |
branch: bump-django-ansible-base | |
title: Bump django-ansible-base to ${{ steps.dab-release.outputs.release }} | |
body: | | |
##### SUMMARY | |
Automated .github/workflows/dab-release.yml | |
django-ansible-base upstream released version == ${{ steps.dab-release.outputs.release }} | |
requirements_git.txt django-ansible-base pinned version == ${{ steps.dab-pinned.outputs.version }} | |
##### ISSUE TYPE | |
- Bug, Docs Fix or other nominal change | |
##### COMPONENT NAME | |
- API | |
commit-message: | | |
Update django-ansible-base version to ${{ steps.dab-pinned.outputs.version }} | |
add-paths: | |
requirements/requirements_git.txt |