Skip to content

Commit

Permalink
master branch init
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Apr 30, 2024
0 parents commit 3fdf1b2
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/dae-build-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: dae CORP Build Trigger
on:
workflow_dispatch:
push:
branches:
- dae

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Trigger dae build
run: |
curl -X POST ${{ secrets.COPR_HOOK_URL }}dae/
47 changes: 47 additions & 0 deletions .github/workflows/upgpkg-dae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Upgpkg Dae SPEC Version
on:
workflow_dispatch:
schedule:
- cron: '0 0 */1 * *'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: dae

- name: Get Current Version
run: |
CURRENT_VERSION=`grep -E '^Version:' *.spec | awk '{print $2}'`
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
- name: Export latest dae version
run: |
NEW_VERSION=`curl -s https://api.github.com/repos/daeuniverse/dae/releases/latest | jq -r '.tag_name' | sed 's/v//g'`
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Run rpmdev-bumpspec action
if: ${{ env.CURRENT_VERSION != env.NEW_VERSION }}
uses: netoarmando/rpmdev-bumpspec-action@v1
with:
specfile: 'dae.spec'
new: ${{ env.NEW_VERSION }}
userstring: "zhullyb <[email protected]>"

- name: Commit changes
if: ${{ env.CURRENT_VERSION != env.NEW_VERSION }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "zhullyb"
git add .
git commit -m "upgpkg: dae@${{ env.NEW_VERSION }}"
git push
- name: trigger copr webhook
if: ${{ env.CURRENT_VERSION != env.NEW_VERSION }}
run: |
curl -X POST ${{ secrets.COPR_HOOK_URL }}dae/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The Repo For COPR build

0 comments on commit 3fdf1b2

Please sign in to comment.