Moved secrets.GITLAB_SYNC_PAT to env var to avoid expansion in run β¦
#29
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: Sync changes to GitLab | |
| on: | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| if: (github.repository == 'awesome-scripts/awesome-userscripts') | |
| runs-on: ubuntu-latest | |
| env: | |
| TZ: PST8PDT | |
| steps: | |
| - name: Checkout awesome-scripts/awesome-userscripts | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Push changes to gitlab.com/awesome-scripts/awesome-userscripts | |
| env: | |
| GITLAB_SYNC_PAT: ${{ secrets.GITLAB_SYNC_PAT }} | |
| run: | | |
| git push --force -o ci.skip \ | |
| https://oauth2:$GITLAB_SYNC_PAT@gitlab.com/awesome-scripts/awesome-userscripts.git master |