This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Bump actions/checkout from 4.1.1 to 4.2.2 (#5) #10
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
on: | |
push: | |
branches: | |
- 'main' | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
mirror_job: | |
permissions: | |
contents: write | |
deployments: write | |
runs-on: ubuntu-latest | |
name: Mirror SOURCE_BRANCH_NAME branch to DESTINATION_BRANCH_NAME branch | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
- name: Mirror action step | |
id: mirror | |
uses: google/mirror-branch-action@30c52ee21f5d3bd7fb28b95501c11aae7f17eebb # v2.0 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
source: 'main' | |
dest: 'master' |