forked from elementary/appcenter-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Action: update to more closely match upstream
- Loading branch information
1 parent
56b966d
commit f9f487d
Showing
2 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,34 +15,25 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update && sudo apt install ruby-nokogiri git | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 # Not needed with a .ruby-version file | ||
bundler-cache: true | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
sudo apt update && sudo apt install ruby-nokogiri | ||
gem install nokogiri -- --use-system-libraries | ||
rm apps/* | ||
ruby ./generate-eos-apps.rb | ||
- name: Commit | ||
run: | | ||
FILES_CHANGED=$(git diff --name-only | wc -l) | ||
if [[ $FILES_CHANGED != 0 ]]; then | ||
git config --local user.email "actions@github.com" | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "Automatic update of data" -a | ||
git push | ||
fi | ||
- name: Push | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: main |
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