summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorChris Meyers <chris.meyers.fsu@gmail.com>2024-07-12 19:34:34 +0200
committerChris Meyers <chrismeyersfsu@users.noreply.github.com>2024-07-17 21:10:25 +0200
commitacd834df8b9b9cf262461ce8a99a01f2b6c67952 (patch)
treec83a67528e98c938dd28f4e0cd48e4946db37909 /.github
parentUpdated the api file to reflect 2024 date (#15369) (diff)
downloadawx-acd834df8b9b9cf262461ce8a99a01f2b6c67952.tar.xz
awx-acd834df8b9b9cf262461ce8a99a01f2b6c67952.zip
Check and update django-ansible-base
* Check upstream django-ansible-base releases. If the version upstream does not match the version we are pinned to then submit a PR with the upstream version.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dab-release.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/dab-release.yml b/.github/workflows/dab-release.yml
new file mode 100644
index 0000000000..c553dd2731
--- /dev/null
+++ b/.github/workflows/dab-release.yml
@@ -0,0 +1,48 @@
+---
+name: DAB requirements update
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '0 * * * *' # once an hour
+permissions:
+ pull-requests: write
+ contents: write
+jobs:
+ dab-pin-newest:
+ runs-on: ubuntu-latest
+ steps:
+ - id: dab-release
+ name: Get current django-ansible-base release version
+ uses: pozetroninc/github-action-get-latest-release@master
+ 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@v6
+ with:
+ base: devel
+ branch: bump-django-ansible-base
+ title: Bump django-ansible-base
+ body: |
+ 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 }}
+ commit-message: |
+ Update django-ansible-base version to ${{ steps.dab-pinned.outputs.version }}
+ add-paths:
+ requirements/requirements_git.txt \ No newline at end of file