Update docker/login-action action to v3 #1484
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: dependency-updates | |
on: | |
push: | |
schedule: | |
- cron: "0 */6 * * *" | |
workflow_dispatch: | |
jobs: | |
w2d-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: update w2d version | |
id: update | |
run: | | |
W2D_VERSION="$( | |
git ls-remote --tags https://github.com/FKLC/WhatsAppToDiscord \ | |
| cut -d/ -f3 \ | |
| sort -V \ | |
| tail -1 | |
)" | |
sed -i "s|W2D_VERSION=.*|W2D_VERSION=$W2D_VERSION \\\|" ./Dockerfile | |
echo "version=$W2D_VERSION" >> $GITHUB_OUTPUT | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
signoff: true | |
delete-branch: true | |
commit-message: update w2d version to ${{ steps.update.outputs.version }} | |
branch: update-w2d-version | |
title: update w2d version to ${{ steps.update.outputs.version }} | |
body: update w2d version to ${{ steps.update.outputs.version }} |