Skip to content

Commit

Permalink
Update trigger-increment-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored Oct 1, 2024
1 parent 3f403e7 commit 0b3f806
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/trigger-increment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,17 @@ name: Trigger increment action in webapp-server

on:
push:
branches-ignore:
- '!integration'
tags:
- v*

jobs:
trigger_build:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 1.11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Create workflow dispatch
uses: actions/github-script@v6
with:
github-token: ${{ secrets.WORKFLOW_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'veraPDF',
repo: 'verapdf-webapp-server',
workflow_id: 'version-auto-increment.yml',
ref: 'master'
})
- name: Checkout the branch
uses: actions/checkout@v3

- name: Build and run Docker Image
run:
echo ${${{ github.ref_name }}##*.}

0 comments on commit 0b3f806

Please sign in to comment.