Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Nov 10, 2023
1 parent e487224 commit 9848b00
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Jc Test

on:
push:
branches:
- jcrelease

jobs:
publish:
name: Release build and publish
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: jcrelease
persist-credentials: false
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: adopt
java-version: 17
- name: Commit changes
run: |
echo "Something" > something.txt
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add something.txt
git commit -m "AUTOMATION: Changelog update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
branch: jcrelease

0 comments on commit 9848b00

Please sign in to comment.