Skip to content

Commit

Permalink
Actually fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
danmindru committed Nov 16, 2024
1 parent 33c954f commit e6d1566
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/parse-submission.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
jobs:
check-commit-message:
runs-on: ubuntu-latest
outputs:
skip: ${{ steps.check.outputs.skip }}
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -21,13 +19,13 @@ jobs:
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
if [[ "$COMMIT_MESSAGE" == "Update repository stars" || "$COMMIT_MESSAGE" == "Update app info" ]]; then
echo "::set-output name=skip::true"
echo "skip=true" >> $GITHUB_ENV
else
echo "::set-output name=skip::false"
echo "skip=false" >> $GITHUB_ENV
update-app-info:
if: ${{ jobs.check-commit-message.outputs.skip == 'false' }}
runs-on: ubuntu-latest
if: env.skip != 'true'
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down Expand Up @@ -55,8 +53,8 @@ jobs:
git push https://x-access-token:${{ secrets.RBD_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
update-stars:
if: ${{ jobs.check-commit-message.outputs.skip == 'false' }}
runs-on: ubuntu-latest
if: env.skip != 'true'
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit e6d1566

Please sign in to comment.