From ad84df90d76d44ca50c5a5ca87faf9f188e248c7 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 7 Mar 2021 10:18:34 -0800 Subject: [PATCH] Mirror 'main' branch to 'master' (#819) The 'master' branch has been renamed to 'main' per: https://github.com/RustSec/advisory-db/issues/312 However older clients are still consuming the 'master' branch. This commit adds a GitHub Actions job which mirrors the 'main' branch to 'master' to continue supporting these older clients. --- .github/workflows/mirror-main-to-master.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/mirror-main-to-master.yml diff --git a/.github/workflows/mirror-main-to-master.yml b/.github/workflows/mirror-main-to-master.yml new file mode 100644 index 0000000..80efdd4 --- /dev/null +++ b/.github/workflows/mirror-main-to-master.yml @@ -0,0 +1,14 @@ +# Temporary job to support clients which still consume 'master' +# See: +name: Mirror 'main' branch to 'master' + +on: + push: + branches: master + +jobs: + publish-web: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: git push origin master:main