Skip to content

Commit

Permalink
Add extra job
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Nov 16, 2024
1 parent a2b0fbe commit 50d231b
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/parse-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
update-app-info:
if: "!contains(github.event.head_commit.message, 'Update app info')"
runs-on: ubuntu-latest

steps:
Expand All @@ -27,19 +28,8 @@ jobs:
- name: Run update script
run: cd shipixen/scripts && node parse-app-info.js

commit-changes:
needs: update-app-info
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'Update app info')"

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.RBD_GITHUB_TOKEN }}

- name: Commit and push changes
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.RBD_GITHUB_TOKEN }}
run: |
Expand All @@ -48,3 +38,12 @@ jobs:
git add .
git commit -m 'Update app info'
git push https://x-access-token:${{ secrets.RBD_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
output-number-of-changes:
runs-on: ubuntu-latest
needs: update-app-info
steps:
- name: Count number of changes
run: |
git fetch --depth=1 origin +refs/heads/main:refs/remotes/origin/main
git diff --name-only origin/main

0 comments on commit 50d231b

Please sign in to comment.