This repository has been archived by the owner on Nov 9, 2024. It is now read-only.
added listing: Software Engineer - Fullstack, Redmond at Microsoft (#… #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update READMEs | |
on: | |
push: | |
paths: | |
- '.github/scripts/listings.json' | |
workflow_dispatch: | |
concurrency: | |
group: listings_update | |
cancel-in-progress: true | |
jobs: | |
run-python-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: execute update_readmes.py | |
id: python_script | |
run: python .github/scripts/update_readmes.py | |
- name: commit files | |
if: success() | |
run: | | |
git config --local user.email [email protected] | |
git config --local user.name 'Github Action' | |
git add README.md | |
git diff-index --quiet HEAD || (git commit -a -m "${{ steps.python_script.outputs.commit_message }}" --allow-empty) | |
- name: Push changes to new branch | |
if: success() | |
uses: ad-m/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref_name }} | |
- name: Problem With Action | |
run: echo "There was an error with the github action. ${{ steps.python_script.outputs.error_message }}" | |
if: failure() |