Skip to content

chore: properly checkout repo in prettier-update workflow #7483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

auvred
Copy link
Member

@auvred auvred commented Aug 16, 2023

PR Checklist

Overview

There are two issues in this workflow:

  1. By default actions/checkout@v3 switches to detached HEAD, we need to explicitly specify ref: ${{ github.event.pull_request.head.ref }}
    fatal: You are not currently on a branch. actions/checkout#317 (comment)
  2. actions/checkout@v3 sets http.https://github.com/.extraheader=AUTHORIZATION: basic *** in the git config. This prevents workflow to push to remote using $GITHUB_TOKEN.
    Auth in extraheader makes it difficult to override actions/checkout#162
    persist-credentials: false is designed to turn off this behavior

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @auvred!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 667584d
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/64dc15ded0adc200088f0a2c
😎 Deploy Preview https://deploy-preview-7483--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nx-cloud
Copy link

nx-cloud bot commented Aug 16, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 667584d. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 37 targets

Sent with 💌 from NxCloud.

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 let's try it out, thanks @auvred!

@JoshuaKGoldberg JoshuaKGoldberg merged commit cc91729 into typescript-eslint:main Aug 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repo: prettier-update.yml errors on git push: "fatal: You are not currently on a branch."
2 participants