Compare commits
2 Commits
19eda1e6af
...
9710dc1433
| Author | SHA1 | Date | |
|---|---|---|---|
| 9710dc1433 | |||
| b3e70bcdf8 |
@@ -1,45 +0,0 @@
|
||||
name: Update AWS SDK PHAR
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '34 3 * * *' # 03:34 UTC == 00:34 BRT
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
download-aws-sdk:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
permissions:
|
||||
contents: write
|
||||
actions: write # needed to dispatch another workflow
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download AWS SDK PHAR
|
||||
run: |
|
||||
mkdir -p vendor
|
||||
wget https://github.com/aws/aws-sdk-php/releases/latest/download/aws.phar -O vendor/aws.phar
|
||||
|
||||
- name: Commit and push changes
|
||||
id: commit_step
|
||||
run: |
|
||||
git config --global --add safe.directory '*'
|
||||
git config user.name "Gitea Actions"
|
||||
git config user.email "actions@git.icc.gg"
|
||||
git add vendor/aws.phar
|
||||
|
||||
# If there are changes, commit & push; set output flag accordingly
|
||||
if git diff --quiet && git diff --staged --quiet; then
|
||||
echo "No changes to commit"
|
||||
echo "changes_committed=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
git commit -m "Update AWS SDK PHAR [▶️]"
|
||||
git push origin HEAD:main
|
||||
echo "changes_committed=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
Reference in New Issue
Block a user