Running actions in another directory

Update: It’s now possible to set a working-directory default for a job. See this answer. There is an option to set a working-directory on a step, but not for multiple steps or a whole job. I’m fairly sure this option only works for script steps, not action steps with uses. https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun Using working-directory, your workflow … Read more

Only run job on specific branch with GitHub Actions

In a recent update you can now put if conditionals at job level. See the documentation here. https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif I tested this workflow which runs the job test on every push, but only runs deploy on the master branch. name: my workflow on: push jobs: test: runs-on: ubuntu-latest steps: – name: Execute tests run: exit 0 … Read more

How do I clone a GitHub wiki?

Append .wiki.git to the repository name. That is, if your repository name was foobar: git clone git@github.com:myusername/foobar.git would be the path to clone your repository and git clone git@github.com:myusername/foobar.wiki.git would be the path to clone its wiki. Note: You must have at least one page to be able to clone the wiki repo. (via @tobiasz-cudnik)

How to re-open an issue in GitHub?

Github has very simple rights/privileges (and even simpler management for them). If you are not a collaborator of a repo, then (in regards to issues) you can open issues you can comment on all existing issues (open or closed) you can close your own issues you can re-open your own issues if you closed them … Read more

Github: Can I see the number of downloads for a repo?

Update 2019: Ustin’s answer points to: API /repos/:owner/:repo/traffic/clones, to get the total number of clones and breakdown per day or week, but: only for the last 14 days. API /repos/:owner/:repo/releases/:release_id for getting downloads number of your assets (files attached to the release), field download_count mentioned below, but, as commented, only for the most recent 30 … Read more

Diff syntax highlighting in Github Markdown

Github’s markdown supports diff when formatting code. For example: “`diff public class Hello1 { public static void Main() { – System.Console.WriteLine(“Hello, World!”); + System.Console.WriteLine(“Rock all night long!”); } } “` Output: and it should give you the Diff looks you are looking for, highlighting in red what has been removed and in green what has … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)