Skip to content

Commit

Permalink
🚋 bump github actions dependencies~
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Feb 16, 2024
1 parent 7cdebff commit c13d6a9
Showing 1 changed file with 32 additions and 17 deletions.
49 changes: 32 additions & 17 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
- name: Build packages
run: make dist/generic dist/apk dist/deb dist/rpm dist/pacman
- name: Upload built package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-linux
path: dist/mommy*

build-macos:
Expand All @@ -71,9 +71,9 @@ jobs:
- name: Build package
run: make dist/osxpkg
- name: Upload built package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-macos
path: dist/mommy*

build-freebsd:
Expand Down Expand Up @@ -114,9 +114,9 @@ jobs:
gmake dist/freebsd
- name: Upload built package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-freebsd
path: dist/mommy*

build-netbsd:
Expand Down Expand Up @@ -146,9 +146,9 @@ jobs:
gmake dist/netbsd
echo "::endgroup::"
- name: Upload built package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-netbsd
path: dist/mommy*

build-openbsd:
Expand Down Expand Up @@ -182,9 +182,9 @@ jobs:
gmake dist/openbsd
- name: Upload built package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-openbsd
path: dist/mommy*


Expand All @@ -199,12 +199,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Download built packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: dist
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
uses: ffurrer2/extract-release-notes@v2
with:
release_notes_file: RELEASE_NOTES.md
- name: Prepend release notes
Expand Down Expand Up @@ -244,9 +246,10 @@ jobs:
# Required to push '.deb' to repository
token: ${{ secrets.personal_access_token }}
- name: Download built packages
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: dist-mommy
- name: Move .deb into apt-mommy
run: cp dist-mommy/*.deb apt-mommy/deb/
Expand Down Expand Up @@ -321,6 +324,12 @@ jobs:
- name: Update build files
working-directory: aur-mommy
run: |
if [ "${{ github.event.inputs.dry_run }}" = "false" ]; then
empty_option=""
else
empty_option="--allow-empty"
fi;
echo "::group::Fast-forward main"
sudo -u build git checkout dev
sudo -u build git checkout master
Expand All @@ -335,7 +344,7 @@ jobs:
sudo -u build git config --global user.name "FWDekkerBot"
sudo -u build git config --global user.email "[email protected]"
sudo -u build git add --all
sudo -u build git commit -m "🔖 mommy updated the build files to mommy $MOMMY_VERSION~"
sudo -u build git commit -m "🔖 mommy updated the build files to mommy $MOMMY_VERSION~" "$empty_option"
echo "::endgroup::"
echo "::group::Fast-forward dev"
Expand Down Expand Up @@ -376,6 +385,12 @@ jobs:
- name: Update formula
working-directory: homebrew-mommy
run: |
if [ "${{ github.event.inputs.dry_run }}" = "false" ]; then
empty_option=""
else
empty_option="--allow-empty"
fi;
echo "::group::Fast-forward main"
git checkout dev
git checkout main
Expand All @@ -390,7 +405,7 @@ jobs:
git config --global user.name "FWDekkerBot"
git config --global user.email "[email protected]"
git add --all
git commit -m "🔖 mommy updated the formula to mommy $MOMMY_VERSION~"
git commit -m "🔖 mommy updated the formula to mommy $MOMMY_VERSION~" "$empty_option"
echo "::endgroup::"
echo "::group::Fast-forward dev"
Expand Down

0 comments on commit c13d6a9

Please sign in to comment.