chore(deps-dev): Bump rollup from 2.79.1 to 2.79.2 #3513
Workflow file for this run
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: dependabot-yarn-mirror | |
on: | |
push: | |
branches: [ dependabot/**/* ] | |
pull_request: | |
branches: [ dependabot/**/* ] | |
concurrency: | |
group: dependabot-yarn-mirror-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
yarn-mirror: | |
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom' | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{secrets.MERGE_ACTION || github.token}} | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Get branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | |
id: get_branch | |
- name: Install dependencies | |
run: yarn install --no-immutable --immutable-cache | |
- name: Push changes | |
run: | | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "Mirror is clean, exiting..." | |
else | |
git config --global user.email ${{ secrets.BOT_EMAIL }} | |
git config --global user.name ${{ secrets.BOT_NAME }} | |
git add -A | |
git commit -m "chore(yarn): update yarn offline mirror" | |
git push origin ${{ steps.get_branch.outputs.branch }} | |
fi |