mirror of
https://gitea.com/gitea/homebrew-gitea.git
synced 2024-06-02 10:11:26 +05:30
36 lines
809 B
YAML
36 lines
809 B
YAML
name: test
|
|
|
|
on:
|
|
- pull_request
|
|
- push
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
# tags:
|
|
# - v*
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
brew_version: ["3.6.14", "latest"]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: update
|
|
run: ./bump_version.sh
|
|
- name: set key
|
|
run: |
|
|
mkdir -p ~/.ssh
|
|
echo "${{ secrets.DEPLOY_KEY }}" | base64 -d > ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
ssh-keyscan gitea.com >> ~/.ssh/known_hosts
|
|
- name: commit
|
|
run: |
|
|
git config --global user.email "teabot@gitea.io"
|
|
git config --global user.name "GiteaBot"
|
|
git add --all
|
|
git commit -m "[skip ci] Updated Version via cron"
|
|
#git push origin main
|
|
|