Skip to content

Commit

Permalink
chore: fetch before trying to checkout from origin/main (#142)
Browse files Browse the repository at this point in the history
The actions/checkout flow doesn't necessarily fetch all remote refs, so
it is necessary to fetch origin/main before trying to reference it.



---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
  • Loading branch information
RomainMuller authored Jun 16, 2023
1 parent edb84f5 commit 6cb9877
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-maintenance-v5.0.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projenrc/upgrade-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class UpgradeDependencies extends Component {
{
env: { CI: 'true' },
name: 'Back-port projenrc changes from main',
run: 'git checkout origin/main -- .projenrc.ts projenrc README.md && yarn projen',
run: 'git fetch origin main && git checkout FETCH_HEAD -- .projenrc.ts projenrc README.md && yarn projen',
},
]
: []),
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6cb9877

Please sign in to comment.