Bump versions in github actions (#19) #4
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: mirror-bitbucket | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
checks: write | |
contents: read | |
jobs: | |
# Mirror the main branch to BitBucket. | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: add bitbucket remote | |
run: | | |
git remote add bitbucket "https://x-token-auth:${BITBUCKET_ACCESS_TOKEN}@bitbucket.org/fensak-io/fensak-rules-examples.git" | |
git fetch bitbucket | |
env: | |
BITBUCKET_ACCESS_TOKEN: ${{ secrets.BITBUCKET_ACCESS_TOKEN }} | |
- name: push main branch | |
run: git push bitbucket main |