New domain #43
This file contains hidden or 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: "AMSRC Builder Action" | |
| on: [push] | |
| jobs: | |
| build-writeups: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone repo | |
| uses: actions/checkout@v2.3.4 | |
| - name: Run the local builder action | |
| uses: ./infra/builder | |
| env: | |
| AMSRCW_TWITTER_CK: ${{ secrets.AMSRCW_TWITTER_CK }} | |
| AMSRCW_TWITTER_CS: ${{ secrets.AMSRCW_TWITTER_CS }} | |
| AMSRCW_TWITTER_RK: ${{ secrets.AMSRCW_TWITTER_RK }} | |
| AMSRCW_TWITTER_RS: ${{ secrets.AMSRCW_TWITTER_RS }} | |
| - name: Commit files | |
| run: | | |
| git config --local user.email "amsrc-builder[bot]@gh.xdavidhu.me" | |
| git config --local user.name "amsrc-builder[bot]" | |
| git commit -m "Build writeups" -a | |
| - name: Push the changes | |
| uses: ad-m/github-push-action@057a6ba835d986bfe495dd476a6c4db1d5f9503c | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |